Package de.xima.fc.form.request
Class DefaultRequestContext
- java.lang.Object
 - 
- de.xima.fc.form.request.DefaultRequestContext
 
 
- 
- All Implemented Interfaces:
 IRequestContext
public class DefaultRequestContext extends Object implements IRequestContext
 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultRequestContext(String characterEncoding, int contentLength, String contentType, InputStream inputStream, javax.servlet.ServletContext servletContext, Map<String,Object> attributes) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String name)Retrieves the attribute for the given name.StringgetCharacterEncoding()Retrieve the character encoding for the request.intgetContentLength()Retrieve the content length of the request.StringgetContentType()Retrieve the content type of the request.InputStreamgetInputStream()Retrieve the input stream for the request.javax.servlet.ServletContextgetServletContext()Retrieve the servlet context of the application. 
 - 
 
- 
- 
Method Detail
- 
getAttribute
public Object getAttribute(String name)
Description copied from interface:IRequestContextRetrieves the attribute for the given name.- Specified by:
 getAttributein interfaceIRequestContext- Parameters:
 name- to retrieve request context attribute for.- Returns:
 - the attribute or 
nullif no attribute was found for the given name. 
 
- 
getCharacterEncoding
public String getCharacterEncoding()
Description copied from interface:IRequestContextRetrieve the character encoding for the request.- Specified by:
 getCharacterEncodingin interfaceIRequestContext- Returns:
 - The character encoding for the request.
 
 
- 
getContentLength
public int getContentLength()
Description copied from interface:IRequestContextRetrieve the content length of the request.- Specified by:
 getContentLengthin interfaceIRequestContext- Returns:
 - The content length of the request.
 
 
- 
getContentType
public String getContentType()
Description copied from interface:IRequestContextRetrieve the content type of the request.- Specified by:
 getContentTypein interfaceIRequestContext- Returns:
 - The content type of the request.
 
 
- 
getInputStream
public InputStream getInputStream() throws IOException
Description copied from interface:IRequestContextRetrieve the input stream for the request.- Specified by:
 getInputStreamin interfaceIRequestContext- Returns:
 - The input stream for the request.
 - Throws:
 IOException- if a problem occurs.
 
- 
getServletContext
public javax.servlet.ServletContext getServletContext()
Description copied from interface:IRequestContextRetrieve the servlet context of the application.- Specified by:
 getServletContextin interfaceIRequestContext- Returns:
 - The servlet context of the application.
 
 
 - 
 
 -