org.apache.axiom.attachments.impl
Class PartFactory
java.lang.Object
org.apache.axiom.attachments.impl.PartFactory
public class PartFactory
- extends Object
The PartFactory creates an object that represents a Part
(implements the Part interface). There are different ways
to represent a part (backing file or backing array etc.).
These different implementations should not be exposed to the
other layers of the code. The PartFactory helps maintain this
abstraction, and makes it easier to add new implementations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartFactory
public PartFactory()
createPart
public static Part createPart(LifecycleManager manager,
MIMEBodyPartInputStream in,
boolean isSOAPPart,
int thresholdSize,
String attachmentDir,
int messageContentLength)
throws OMException
- Creates a part from the input stream.
The remaining parameters are used to determine if the
part should be represented in memory (byte buffers) or
backed by a file.
- Parameters:
in
- MIMEBodyPartInputStreamisSOAPPart
- thresholdSize
- attachmentDir
- messageContentLength
-
- Returns:
- Part
- Throws:
OMException
- if any exception is encountered while processing.
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.