org.jboss.shrinkwrap.descriptor.api.webcommon30
Interface MultipartConfigType<T>

All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
All Known Implementing Classes:
MultipartConfigTypeImpl

public interface MultipartConfigType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>

This interface defines the contract for the multipart-configType xsd type

Original Documentation:



This element specifies configuration information related to the
handling of multipart/form-data requests.


Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Method Summary
 java.lang.Integer getFileSizeThreshold()
          Returns the file-size-threshold element
 java.lang.String getLocation()
          Returns the location element
 java.lang.Long getMaxFileSize()
          Returns the max-file-size element
 java.lang.Long getMaxRequestSize()
          Returns the max-request-size element
 MultipartConfigType<T> removeFileSizeThreshold()
          Removes the file-size-threshold element
 MultipartConfigType<T> removeLocation()
          Removes the location element
 MultipartConfigType<T> removeMaxFileSize()
          Removes the max-file-size element
 MultipartConfigType<T> removeMaxRequestSize()
          Removes the max-request-size element
 MultipartConfigType<T> setFileSizeThreshold(java.lang.Integer fileSizeThreshold)
          If not already created, a new file-size-threshold element with the given value will be created.
 MultipartConfigType<T> setLocation(java.lang.String location)
          If not already created, a new location element with the given value will be created.
 MultipartConfigType<T> setMaxFileSize(java.lang.Long maxFileSize)
          If not already created, a new max-file-size element with the given value will be created.
 MultipartConfigType<T> setMaxRequestSize(java.lang.Long maxRequestSize)
          If not already created, a new max-request-size element with the given value will be created.
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

setLocation

MultipartConfigType<T> setLocation(java.lang.String location)
If not already created, a new location element with the given value will be created. Otherwise, the existing location element will be updated with the given value.

Returns:
the current instance of MultipartConfigType

removeLocation

MultipartConfigType<T> removeLocation()
Removes the location element

Returns:
the current instance of MultipartConfigType

getLocation

java.lang.String getLocation()
Returns the location element

Returns:
the node defined for the element location

setMaxFileSize

MultipartConfigType<T> setMaxFileSize(java.lang.Long maxFileSize)
If not already created, a new max-file-size element with the given value will be created. Otherwise, the existing max-file-size element will be updated with the given value.

Returns:
the current instance of MultipartConfigType

removeMaxFileSize

MultipartConfigType<T> removeMaxFileSize()
Removes the max-file-size element

Returns:
the current instance of MultipartConfigType

getMaxFileSize

java.lang.Long getMaxFileSize()
Returns the max-file-size element

Returns:
the node defined for the element max-file-size

setMaxRequestSize

MultipartConfigType<T> setMaxRequestSize(java.lang.Long maxRequestSize)
If not already created, a new max-request-size element with the given value will be created. Otherwise, the existing max-request-size element will be updated with the given value.

Returns:
the current instance of MultipartConfigType

removeMaxRequestSize

MultipartConfigType<T> removeMaxRequestSize()
Removes the max-request-size element

Returns:
the current instance of MultipartConfigType

getMaxRequestSize

java.lang.Long getMaxRequestSize()
Returns the max-request-size element

Returns:
the node defined for the element max-request-size

setFileSizeThreshold

MultipartConfigType<T> setFileSizeThreshold(java.lang.Integer fileSizeThreshold)
If not already created, a new file-size-threshold element with the given value will be created. Otherwise, the existing file-size-threshold element will be updated with the given value.

Returns:
the current instance of MultipartConfigType

removeFileSizeThreshold

MultipartConfigType<T> removeFileSizeThreshold()
Removes the file-size-threshold element

Returns:
the current instance of MultipartConfigType

getFileSizeThreshold

java.lang.Integer getFileSizeThreshold()
Returns the file-size-threshold element

Returns:
the node defined for the element file-size-threshold