Package org.apache.cxf.attachment
Class AttachmentDeserializer
java.lang.Object
org.apache.cxf.attachment.AttachmentDeserializer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
The maximum number of attachments permitted in a message.static final String
The maximum MIME Header Length.static final String
The maximum size of the attachment.static final String
The memory threshold of attachments.static final String
static final int
static final int
-
Constructor Summary
ConstructorDescriptionAttachmentDeserializer
(Message message) AttachmentDeserializer
(Message message, List<String> supportedTypes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
Check for more attachment.void
protected void
boolean
void
markClosed
(DelegatingInputStream delegatingInputStream) readNext()
void
setLazyLoading
(boolean lazyLoading)
-
Field Details
-
ATTACHMENT_PART_HEADERS
-
ATTACHMENT_DIRECTORY
- See Also:
-
ATTACHMENT_MEMORY_THRESHOLD
The memory threshold of attachments. Allowed value is any instance ofNumber
orString
. The default isTHRESHOLD
.- See Also:
-
ATTACHMENT_MAX_SIZE
- See Also:
-
ATTACHMENT_MAX_COUNT
The maximum number of attachments permitted in a message. The default is 50.- See Also:
-
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
-