org.jboss.netty.handler.codec.http2
Interface HttpDataFactory

All Known Implementing Classes:
DefaultHttpDataFactory

public interface HttpDataFactory

Interface to enable creation of InterfaceHttpData objects

Author:
The Netty Project, Andy Taylor (andy.taylor@jboss.org), Trustin Lee, Frederic Bregier

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)
 

Method Detail

createAttribute

Attribute createAttribute(HttpRequest request,
                          String name)
                          throws NullPointerException,
                                 IllegalArgumentException
Parameters:
request - associated request
name -
Returns:
a new Attribute with no value
Throws:
NullPointerException
IllegalArgumentException

createAttribute

Attribute createAttribute(HttpRequest request,
                          String name,
                          String value)
                          throws NullPointerException,
                                 IllegalArgumentException
Parameters:
request - associated request
name -
value -
Returns:
a new Attribute
Throws:
NullPointerException
IllegalArgumentException

createFileUpload

FileUpload createFileUpload(HttpRequest request,
                            String name,
                            String filename,
                            String contentType,
                            String contentTransferEncoding,
                            Charset charset,
                            long size)
                            throws NullPointerException,
                                   IllegalArgumentException
Parameters:
request - associated request
name -
filename -
contentType -
charset -
contentTransferEncoding -
size - the size of the Uploaded file
Returns:
a new FileUpload
Throws:
NullPointerException
IllegalArgumentException

removeHttpDataFromClean

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)

Parameters:
request - associated request
data -

cleanRequestHttpDatas

void cleanRequestHttpDatas(HttpRequest request)
Remove all InterfaceHttpData from virtual File storage from clean list for the request

Parameters:
request - associated request

cleanAllHttpDatas

void cleanAllHttpDatas()
Remove all InterfaceHttpData from virtual File storage from clean list for all requests



Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.