Package org.apache.cxf.attachment
Class AttachmentDeserializer
- java.lang.Object
- 
- org.apache.cxf.attachment.AttachmentDeserializer
 
- 
 public class AttachmentDeserializer extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringATTACHMENT_DIRECTORYstatic StringATTACHMENT_MAX_COUNTThe maximum number of attachments permitted in a message.static StringATTACHMENT_MAX_HEADER_SIZEThe maximum MIME Header Length.static StringATTACHMENT_MAX_SIZEThe maximum size of the attachment.static StringATTACHMENT_MEMORY_THRESHOLDThe memory threshold of attachments.static StringATTACHMENT_PART_HEADERSstatic intDEFAULT_MAX_HEADER_SIZEstatic intTHRESHOLD
 - 
Constructor SummaryConstructors Constructor Description AttachmentDeserializer(Message message)AttachmentDeserializer(Message message, List<String> supportedTypes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Check for more attachment.voidinitializeAttachments()protected voidinitializeRootMessage()booleanisLazyLoading()voidmarkClosed(DelegatingInputStream delegatingInputStream)AttachmentImplreadNext()voidsetLazyLoading(boolean lazyLoading)
 
- 
- 
- 
Field Detail- 
ATTACHMENT_PART_HEADERSpublic static final String ATTACHMENT_PART_HEADERS 
 - 
ATTACHMENT_DIRECTORYpublic static final String ATTACHMENT_DIRECTORY - See Also:
- Constant Field Values
 
 - 
ATTACHMENT_MEMORY_THRESHOLDpublic static final String ATTACHMENT_MEMORY_THRESHOLD The memory threshold of attachments. Allowed value is any instance ofNumberorString. The default isTHRESHOLD.- See Also:
- Constant Field Values
 
 - 
ATTACHMENT_MAX_SIZEpublic static final String ATTACHMENT_MAX_SIZE - See Also:
- Constant Field Values
 
 - 
ATTACHMENT_MAX_COUNTpublic static final String ATTACHMENT_MAX_COUNT The maximum number of attachments permitted in a message. The default is 50.- See Also:
- Constant Field Values
 
 - 
ATTACHMENT_MAX_HEADER_SIZEpublic static final String ATTACHMENT_MAX_HEADER_SIZE The maximum MIME Header Length. The default is 300.- See Also:
- Constant Field Values
 
 - 
DEFAULT_MAX_HEADER_SIZEpublic static final int DEFAULT_MAX_HEADER_SIZE 
 - 
THRESHOLDpublic static final int THRESHOLD - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
initializeAttachmentspublic void initializeAttachments() throws IOException- Throws:
- IOException
 
 - 
initializeRootMessageprotected void initializeRootMessage() throws IOException- Throws:
- IOException
 
 - 
readNextpublic AttachmentImpl readNext() throws IOException - Throws:
- IOException
 
 - 
isLazyLoadingpublic boolean isLazyLoading() 
 - 
setLazyLoadingpublic void setLazyLoading(boolean lazyLoading) 
 - 
markClosedpublic void markClosed(DelegatingInputStream delegatingInputStream) throws IOException - Throws:
- IOException
 
 - 
hasNextpublic boolean hasNext() throws IOExceptionCheck for more attachment.- Returns:
- whether there is more attachment or not. It will not deserialize the next attachment.
- Throws:
- IOException
 
 
- 
 
-