Package org.apache.cxf.attachment
Class AttachmentDeserializer
java.lang.Object
org.apache.cxf.attachment.AttachmentDeserializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThe maximum number of attachment headers permitted in a message.static final StringThe maximum number of attachments permitted in a message.static final StringThe maximum MIME Header Length.static final StringThe maximum size of the attachment.static final StringThe memory threshold of attachments.static final Stringstatic final intstatic final intstatic final longstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionAttachmentDeserializer(Message message) AttachmentDeserializer(Message message, List<String> supportedTypes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Check for more attachment.voidprotected voidbooleanvoidmarkClosed(DelegatingInputStream delegatingInputStream) readNext()voidsetLazyLoading(boolean lazyLoading)
-
Field Details
-
ATTACHMENT_PART_HEADERS
-
ATTACHMENT_DIRECTORY
- See Also:
-
ATTACHMENT_MEMORY_THRESHOLD
The memory threshold of attachments. Allowed value is any instance ofNumberorString. The default isTHRESHOLD.- See Also:
-
ATTACHMENT_MAX_SIZE
- See Also:
-
DEFAULT_ATTACHMENT_MAX_SIZE
public static final long DEFAULT_ATTACHMENT_MAX_SIZE -
ATTACHMENT_MAX_COUNT
The maximum number of attachments permitted in a message. The default is 50.- See Also:
-
DEFAULT_ATTACHMENT_MAX_COUNT
public static final int DEFAULT_ATTACHMENT_MAX_COUNT- See Also:
-
ATTACHMENT_HEADERS_MAX_COUNT
The maximum number of attachment headers permitted in a message. The default is 500.- See Also:
-
DEFAULT_ATTACHMENT_HEADERS_MAX_COUNT
public static final int DEFAULT_ATTACHMENT_HEADERS_MAX_COUNT -
ATTACHMENT_MAX_HEADER_SIZE
The maximum MIME Header Length. The default is 300.- See Also:
-
DEFAULT_MAX_HEADER_SIZE
public static final int DEFAULT_MAX_HEADER_SIZE -
THRESHOLD
public static final int THRESHOLD- See Also:
-
-
Constructor Details
-
AttachmentDeserializer
-
AttachmentDeserializer
-
-
Method Details
-
initializeAttachments
- Throws:
IOException
-
initializeRootMessage
- Throws:
IOException
-
readNext
- Throws:
IOException
-
isLazyLoading
public boolean isLazyLoading() -
setLazyLoading
public void setLazyLoading(boolean lazyLoading) -
markClosed
- Throws:
IOException
-
hasNext
Check for more attachment.- Returns:
- whether there is more attachment or not. It will not deserialize the next attachment.
- Throws:
IOException
-