Package org.apache.cxf.attachment
Class AttachmentDeserializer
java.lang.Object
org.apache.cxf.attachment.AttachmentDeserializer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic 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 int
- 
Constructor SummaryConstructorsConstructorDescriptionAttachmentDeserializer(Message message) AttachmentDeserializer(Message message, List<String> supportedTypes) 
- 
Method SummaryModifier 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_THRESHOLDThe memory threshold of attachments. Allowed value is any instance ofNumberorString. The default isTHRESHOLD.- See Also:
 
- 
ATTACHMENT_MAX_SIZE- See Also:
 
- 
ATTACHMENT_MAX_COUNTThe maximum number of attachments permitted in a message. The default is 50.- See Also:
 
- 
ATTACHMENT_MAX_HEADER_SIZEThe maximum MIME Header Length. The default is 300.- See Also:
 
- 
DEFAULT_MAX_HEADER_SIZEpublic static final int DEFAULT_MAX_HEADER_SIZE
- 
THRESHOLDpublic static final int THRESHOLD- See Also:
 
 
- 
- 
Constructor Details- 
AttachmentDeserializer
- 
AttachmentDeserializer
 
- 
- 
Method Details- 
initializeAttachments- Throws:
- IOException
 
- 
initializeRootMessage- Throws:
- IOException
 
- 
readNext- Throws:
- IOException
 
- 
isLazyLoadingpublic boolean isLazyLoading()
- 
setLazyLoadingpublic void setLazyLoading(boolean lazyLoading) 
- 
markClosed- Throws:
- IOException
 
- 
hasNextCheck for more attachment.- Returns:
- whether there is more attachment or not. It will not deserialize the next attachment.
- Throws:
- IOException
 
 
-