- field(String, String) - Method in class org.glassfish.jersey.media.multipart.FormDataMultiPart
-
Builder pattern method to add a named field with a text value,
and return this instance.
- field(String, Object, MediaType) - Method in class org.glassfish.jersey.media.multipart.FormDataMultiPart
-
Builder pattern method to add a named field with an arbitrary
media type and entity, and return this instance.
- FileDataBodyPart - Class in org.glassfish.jersey.media.multipart.file
-
- FileDataBodyPart() - Constructor for class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
A no-args constructor which expects its client to set the values
individually, the attributes to be set are fileEntity and name; the
media type will be predicted from the fileEntity if not set explicitly.
- FileDataBodyPart(String, File) - Constructor for class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
Constructs the body part with the provided name and file, it predicts the
MediaType of the file provided.
- FileDataBodyPart(String, File, MediaType) - Constructor for class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
Constructs the body part with all the attributes set for its proper
function.
- fileName - Variable in class org.glassfish.jersey.media.multipart.ContentDisposition.ContentDispositionBuilder
-
- fileName(String) - Method in class org.glassfish.jersey.media.multipart.ContentDisposition.ContentDispositionBuilder
-
Add the "file-name" parameter.
- FORM_DATA_MULTIPART_CANNOT_CHANGE_MEDIATYPE() - Static method in class org.glassfish.jersey.media.multipart.internal.LocalizationMessages
-
Cannot change media type of a FormDataMultiPart instance.
- FormDataBodyPart - Class in org.glassfish.jersey.media.multipart
-
Subclass of
BodyPart with specialized support for media type
multipart/form-data.
- FormDataBodyPart() - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- FormDataBodyPart(boolean) - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Instantiates an unnamed new
FormDataBodyPart with
mediaType of
text/plain
and setting the flag for applying the fix for erroneous file name value if content disposition header of
messages coming from MS Internet Explorer (see
JERSEY-759).
- FormDataBodyPart(MediaType) - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- FormDataBodyPart(Object, MediaType) - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- FormDataBodyPart(String, String) - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Instantiates a named
FormDataBodyPart with a
media type of
text/plain and String value.
- FormDataBodyPart(String, Object, MediaType) - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- FormDataBodyPart(FormDataContentDisposition, String) - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- FormDataBodyPart(FormDataContentDisposition, Object, MediaType) - Constructor for class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- FormDataContentDisposition - Class in org.glassfish.jersey.media.multipart
-
A form-data content disposition header.
- FormDataContentDisposition(String, String, String, Date, Date, Date, long) - Constructor for class org.glassfish.jersey.media.multipart.FormDataContentDisposition
-
Constructor for the builder.
- FormDataContentDisposition(String) - Constructor for class org.glassfish.jersey.media.multipart.FormDataContentDisposition
-
- FormDataContentDisposition(String, boolean) - Constructor for class org.glassfish.jersey.media.multipart.FormDataContentDisposition
-
- FormDataContentDisposition(HttpHeaderReader, boolean) - Constructor for class org.glassfish.jersey.media.multipart.FormDataContentDisposition
-
- FormDataContentDisposition.FormDataContentDispositionBuilder - Class in org.glassfish.jersey.media.multipart
-
Builder to build form data content disposition.
- FormDataMultiPart - Class in org.glassfish.jersey.media.multipart
-
Subclass of
MultiPart with specialized support for media type
multipart/form-data.
- FormDataMultiPart() - Constructor for class org.glassfish.jersey.media.multipart.FormDataMultiPart
-
Instantiates a new FormDataMultiPart instance with
default characteristics.
- FormDataParam - Annotation Type in org.glassfish.jersey.media.multipart
-
Binds the named body part(s) of a "multipart/form-data" request
entity body to a resource method parameter.
- FormDataParamException - Exception in org.glassfish.jersey.media.multipart
-
- FormDataParamException(Throwable, String, String) - Constructor for exception org.glassfish.jersey.media.multipart.FormDataParamException
-
- FormDataParamInjectionFeature - Class in org.glassfish.jersey.media.multipart.internal
-
- FormDataParamInjectionFeature() - Constructor for class org.glassfish.jersey.media.multipart.internal.FormDataParamInjectionFeature
-
- getBodyParts() - Method in class org.glassfish.jersey.media.multipart.MultiPart
-
- getBufferThreshold() - Method in class org.glassfish.jersey.media.multipart.MultiPartProperties
-
Get the size (in bytes) of the entity of an incoming
BodyPart before it will be buffered to disk.
- getContentDisposition() - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Gets the content disposition.
- getContentDisposition() - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- getCreationDate() - Method in class org.glassfish.jersey.media.multipart.ContentDisposition
-
Get the creation-date parameter.
- getDefaultMediaType() - Static method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Gets the default MediaType to be used if the user didn't specify
any.
- getEntity() - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Returns the entity object to be unmarshalled from a request, or to be
marshalled on a response.
- getEntity() - Method in class org.glassfish.jersey.media.multipart.MultiPart
-
Disables access to the entity for a
MultiPart.
- getEntityAs(Class<T>) - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Returns the entity after appropriate conversion to the requested type.
- getExtension() - Method in enum org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor.CommonMediaTypes
-
Gets the file extension.
- getField(String) - Method in class org.glassfish.jersey.media.multipart.FormDataMultiPart
-
Gets a form data body part given a control name.
- getFields(String) - Method in class org.glassfish.jersey.media.multipart.FormDataMultiPart
-
Gets a list of one or more form data body parts given a control name.
- getFields() - Method in class org.glassfish.jersey.media.multipart.FormDataMultiPart
-
Gets a map of form data body parts where the key is the control name
and the value is a list of one or more form data body parts.
- getFileEntity() - Method in class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
Gets the file for this body part.
- getFileName() - Method in class org.glassfish.jersey.media.multipart.ContentDisposition
-
Get the filename parameter.
- getFilename() - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Gets the filename value which is to be used in the content-disposition
header of this body part entity.
- getFormDataContentDisposition() - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Gets the form data content disposition.
- getHeaders() - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Returns a mutable map of HTTP header value(s) for this BodyPart, keyed by the header name.
- getInputStream() - Method in class org.glassfish.jersey.media.multipart.BodyPartEntity
-
Gets the input stream of the raw bytes of this body part entity.
- getInstance() - Static method in class org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor
-
Gets the singleton instance of this class.
- getMediaType() - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Returns the MediaType for this BodyPart.
- getMediaType() - Method in enum org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor.CommonMediaTypes
-
Gets the media type.
- getMediaTypeFromFile(File) - Static method in enum org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor.CommonMediaTypes
-
A utility method for predicting media type from a file name.
- getMediaTypeFromFile(File) - Method in class org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor
-
- getMediaTypeFromFile(File) - Method in interface org.glassfish.jersey.media.multipart.file.MediaTypePredictor
-
Get the media type from a file name.
- getMediaTypeFromFileName(String) - Static method in enum org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor.CommonMediaTypes
-
A utility method for predicting media type from a file name.
- getMediaTypeFromFileName(String) - Method in class org.glassfish.jersey.media.multipart.file.DefaultMediaTypePredictor
-
- getMediaTypeFromFileName(String) - Method in interface org.glassfish.jersey.media.multipart.file.MediaTypePredictor
-
Get the media type from a file name.
- getModificationDate() - Method in class org.glassfish.jersey.media.multipart.ContentDisposition
-
Get the modification-date parameter.
- getName() - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Gets the control name.
- getName() - Method in class org.glassfish.jersey.media.multipart.FormDataContentDisposition
-
Get the name parameter.
- getParameterizedHeaders() - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Returns an immutable map of parameterized HTTP header value(s) for this BodyPart,
keyed by header name.
- getParameters() - Method in class org.glassfish.jersey.media.multipart.ContentDisposition
-
Get the parameters.
- getParent() - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Returns the parent
MultiPart (if any) for this
BodyPart.
- getPredictor() - Method in class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
Gets the media type predictor.
- getProviders() - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Returns the configured Providers for this BodyPart.
- getReadDate() - Method in class org.glassfish.jersey.media.multipart.ContentDisposition
-
Get the read-date parameter.
- getSize() - Method in class org.glassfish.jersey.media.multipart.ContentDisposition
-
Get the size parameter.
- getSize(MultiPart, Class<?>, Type, Annotation[], MediaType) - Method in class org.glassfish.jersey.media.multipart.internal.MultiPartWriter
-
- getStreamEntity() - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Gets the underlying stream entity which will form the body part entity.
- getTempDir() - Method in class org.glassfish.jersey.media.multipart.MultiPartProperties
-
Get the directory to store temporary files containing body parts of multipart message that extends allowed memory
threshold.
- getType() - Method in class org.glassfish.jersey.media.multipart.ContentDisposition
-
Get the type.
- getValue() - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Gets the field value for this body part.
- getValueAs(Class<T>) - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Gets the field value after appropriate conversion to the requested type.
- setContentDisposition(ContentDisposition) - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Sets the content disposition.
- setContentDisposition(ContentDisposition) - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
- setEntity(Object) - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Set the entity object to be unmarshalled from a request, or to be marshalled on a response.
- setEntity(Object) - Method in class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
This operation is not supported from this implementation.
- setEntity(Object) - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
This operation is not supported from this implementation.
- setEntity(Object) - Method in class org.glassfish.jersey.media.multipart.MultiPart
-
Disables access to the entity for a
MultiPart.
- setFileEntity(File) - Method in class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
- setFileEntity(File, MediaType) - Method in class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
- setFilename(String) - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Sets the body part entity filename value to be used in the
content-disposition header.
- setFormDataContentDisposition(FormDataContentDisposition) - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Sets the form data content disposition.
- setMediaType(MediaType) - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Sets the MediaType for this BodyPart.
- setMediaType(MediaType) - Method in class org.glassfish.jersey.media.multipart.FormDataMultiPart
-
Disables changing the media type to anything other than multipart/form-data.
- setMediaType(MediaType) - Method in class org.glassfish.jersey.media.multipart.MultiPart
-
- setMessageBodyWorkers(MessageBodyWorkers) - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Set message body workers used to transform an entity stream into particular Java type.
- setName(String) - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Sets the control name.
- setParent(MultiPart) - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Sets the parent
MultiPart (if any) for this
BodyPart.
- setPredictor(MediaTypePredictor) - Method in class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
Sets the media type predictor.
- setProviders(Providers) - Method in class org.glassfish.jersey.media.multipart.BodyPart
-
Sets the configured Providers for this BodyPart.
- setStreamEntity(InputStream) - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Allows to explicitly set the body part entity.
- setStreamEntity(InputStream, MediaType) - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Allows to explicitly set the value and the MIME type of the body part
entity.
- setValue(MediaType, Object) - Method in class org.glassfish.jersey.media.multipart.file.FileDataBodyPart
-
This operation is not supported from this implementation.
- setValue(MediaType, Object) - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
This operation is not supported from this implementation.
- setValue(String) - Method in class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
This operation is not supported from this implementation.
- setValue(String) - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Sets the field value for this body part.
- setValue(MediaType, Object) - Method in class org.glassfish.jersey.media.multipart.FormDataBodyPart
-
Sets the field media type and value for this body part.
- size - Variable in class org.glassfish.jersey.media.multipart.ContentDisposition.ContentDispositionBuilder
-
- size(long) - Method in class org.glassfish.jersey.media.multipart.ContentDisposition.ContentDispositionBuilder
-
Add the "size" parameter.
- StreamDataBodyPart - Class in org.glassfish.jersey.media.multipart.file
-
Represents an
InputStream based file submission as a part of the
multipart/form-data.
- StreamDataBodyPart() - Constructor for class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Default constructor which forces user to manually set
the required (name and streamEntity)
properties.
- StreamDataBodyPart(String, InputStream) - Constructor for class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Convenience constructor which assumes the defaults for:
filename (part's name) and mediaType (
MediaType.APPLICATION_OCTET_STREAM_TYPE).
- StreamDataBodyPart(String, InputStream, String) - Constructor for class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
Convenience constructor which assumes the defaults for the
mediaType (MediaType.APPLICATION_OCTET_STREAM_TYPE).
- StreamDataBodyPart(String, InputStream, String, MediaType) - Constructor for class org.glassfish.jersey.media.multipart.file.StreamDataBodyPart
-
All-arguments constructor with all requested parameters set by the
caller.