org.glassfish.jersey.media.multipart
Class MultiPartProperties

java.lang.Object
  extended by org.glassfish.jersey.media.multipart.MultiPartProperties

public class MultiPartProperties
extends java.lang.Object

Injectable JavaBean containing the configuration parameters for jersey-multipart as used in this particular application.

Author:
Craig McClanahan, Paul Sandoz (paul.sandoz at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)

Nested Class Summary
static class MultiPartProperties.Binder
          Injectable provider that supplies a configured instance of .MultiPartProperties for this application.
 
Field Summary
static java.lang.String BUFFER_THRESHOLD
          Name of the resource property for the threshold size (in bytes) above which a body part entity will be buffered to disk instead of being held in memory.
static int DEFAULT_BUFFER_THRESHOLD
          Default threshold size for buffer.
static java.lang.String MULTI_PART_CONFIG_RESOURCE
          Name of a properties resource that (if found in the classpath for this application) will be used to configure the settings returned by our getter methods.
 
Constructor Summary
MultiPartProperties()
          Load and customize (if necessary) the configuration values for the jersey-multipart injection binder.
 
Method Summary
 int getBufferThreshold()
          Return the size (in bytes) of the entity of an incoming BodyPart before it will be buffered to disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BUFFER_THRESHOLD

public static final int DEFAULT_BUFFER_THRESHOLD
Default threshold size for buffer.

See Also:
Constant Field Values

MULTI_PART_CONFIG_RESOURCE

public static final java.lang.String MULTI_PART_CONFIG_RESOURCE
Name of a properties resource that (if found in the classpath for this application) will be used to configure the settings returned by our getter methods.

See Also:
Constant Field Values

BUFFER_THRESHOLD

public static final java.lang.String BUFFER_THRESHOLD
Name of the resource property for the threshold size (in bytes) above which a body part entity will be buffered to disk instead of being held in memory. The default value is 4096.

See Also:
Constant Field Values
Constructor Detail

MultiPartProperties

public MultiPartProperties()
Load and customize (if necessary) the configuration values for the jersey-multipart injection binder.

Throws:
java.lang.IllegalArgumentException - if the configuration resource exists, but there are problems reading it
Method Detail

getBufferThreshold

public int getBufferThreshold()
Return the size (in bytes) of the entity of an incoming BodyPart before it will be buffered to disk. If not customized, the default value is 4096.



Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.