Class Attachment
java.lang.Object
org.apache.cxf.jaxrs.ext.multipart.Attachment
- All Implemented Interfaces:
org.apache.cxf.io.Transferable
This class represents an attachment; generally a multipart part.
Some constructors in here are intended only for
internal use in CXF, others are suitable or preparing
attachments to pass to the
org.apache.cxf.jaxrs.client.WebClient
API.
See the AttachmentBuilder
for a convenient
way to create attachments for use with org.apache.cxf.jaxrs.client.WebClient
.-
Constructor Summary
ConstructorDescriptionAttachment
(jakarta.ws.rs.core.MultivaluedMap<String, String> headers, jakarta.activation.DataHandler handler, Object object) Attachment
(jakarta.ws.rs.core.MultivaluedMap<String, String> headers, Object object) Attachment
(InputStream is, jakarta.ws.rs.core.MultivaluedMap<String, String> headers) Attachment
(String id, jakarta.activation.DataHandler dh, jakarta.ws.rs.core.MultivaluedMap<String, String> headers) Attachment
(String id, jakarta.activation.DataSource ds, jakarta.ws.rs.core.MultivaluedMap<String, String> headers) Attachment
(String id, InputStream is, ContentDisposition cd) Attachment
(String mediaType, Object object) Attachment
(String id, String mediaType, Object object) Attachment
(org.apache.cxf.message.Attachment a, jakarta.ws.rs.ext.Providers providers) -
Method Summary
Modifier and TypeMethodDescriptionboolean
jakarta.ws.rs.core.MediaType
jakarta.activation.DataHandler
getHeaderAsList
(String name) <T> T
int
hashCode()
void
setDataHandler
(jakarta.activation.DataHandler dataHandler) void
transferTo
(File destinationFile)
-
Constructor Details
-
Attachment
public Attachment(org.apache.cxf.message.Attachment a, jakarta.ws.rs.ext.Providers providers) -
Attachment
-
Attachment
-
Attachment
-
Attachment
-
Attachment
-
Attachment
-
Attachment
-
Attachment
-
-
Method Details
-
getContentDisposition
-
getContentId
-
getContentType
public jakarta.ws.rs.core.MediaType getContentType() -
getDataHandler
public jakarta.activation.DataHandler getDataHandler() -
setDataHandler
public void setDataHandler(jakarta.activation.DataHandler dataHandler) -
getObject
-
getObject
-
getHeader
-
getHeaderAsList
-
getHeaders
-
transferTo
- Specified by:
transferTo
in interfaceorg.apache.cxf.io.Transferable
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-