|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.netty.handler.codec.http2.DefaultHttpDataFactory
public class DefaultHttpDataFactory

Default factory giving Attribute and FileUpload according to constructor
Attribute and FileUpload could be :
- MemoryAttribute, DiskAttribute or MixedAttribute
- MemoryFileUpload, DiskFileUpload or MixedFileUpload
according to the constructor.
| Field Summary | |
|---|---|
static long |
MINSIZE
Proposed default MINSIZE as 16 KB. |
| Constructor Summary | |
|---|---|
DefaultHttpDataFactory()
HttpData will be in memory if less than default size (16KB). |
|
DefaultHttpDataFactory(boolean useDisk)
HttpData will be always on Disk if useDisk is True, else always in Memory if False |
|
DefaultHttpDataFactory(long minSize)
HttpData will be on Disk if the size of the file is greater than minSize, else it will be in memory. |
|
| Method Summary | |
|---|---|
void |
cleanAllHttpDatas()
Remove all InterfaceHttpData from virtual File storage from clean list for all requests |
void |
cleanRequestHttpDatas(HttpRequest request)
Remove all InterfaceHttpData from virtual File storage from clean list for the request |
Attribute |
createAttribute(HttpRequest request,
String name)
|
Attribute |
createAttribute(HttpRequest request,
String name,
String value)
|
FileUpload |
createFileUpload(HttpRequest request,
String name,
String filename,
String contentType,
String contentTransferEncoding,
Charset charset,
long size)
|
void |
removeHttpDataFromClean(HttpRequest request,
InterfaceHttpData data)
Remove the given InterfaceHttpData from clean list (will not delete the file, except if the file is still a temporary one as setup at construction) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long MINSIZE
| Constructor Detail |
|---|
public DefaultHttpDataFactory()
public DefaultHttpDataFactory(boolean useDisk)
useDisk - public DefaultHttpDataFactory(long minSize)
minSize - | Method Detail |
|---|
public Attribute createAttribute(HttpRequest request,
String name)
throws NullPointerException,
IllegalArgumentException
createAttribute in interface HttpDataFactoryrequest - associated request
NullPointerException
IllegalArgumentException
public Attribute createAttribute(HttpRequest request,
String name,
String value)
throws NullPointerException,
IllegalArgumentException
createAttribute in interface HttpDataFactoryrequest - associated request
NullPointerException
IllegalArgumentException
public FileUpload createFileUpload(HttpRequest request,
String name,
String filename,
String contentType,
String contentTransferEncoding,
Charset charset,
long size)
throws NullPointerException,
IllegalArgumentException
createFileUpload in interface HttpDataFactoryrequest - associated requestsize - the size of the Uploaded file
NullPointerException
IllegalArgumentException
public void removeHttpDataFromClean(HttpRequest request,
InterfaceHttpData data)
HttpDataFactory
removeHttpDataFromClean in interface HttpDataFactoryrequest - associated requestpublic void cleanRequestHttpDatas(HttpRequest request)
HttpDataFactory
cleanRequestHttpDatas in interface HttpDataFactoryrequest - associated requestpublic void cleanAllHttpDatas()
HttpDataFactory
cleanAllHttpDatas in interface HttpDataFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||