Package de.xima.fc.interfaces.http
Interface IRequestContext
- 
- All Known Implementing Classes:
 HttpServletRequestContext
public interface IRequestContextRepresents the body of an HTTP request.- Since:
 - 8.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract 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
@Nullable Object getAttribute(String name)
Retrieves the attribute for the given name.- Parameters:
 name- to retrieve request context attribute for.- Returns:
 - the attribute or 
nullif no attribute was found for the given name. 
 
- 
getCharacterEncoding
String getCharacterEncoding()
Retrieve the character encoding for the request.- Returns:
 - The character encoding for the request.
 
 
- 
getContentLength
int getContentLength()
Retrieve the content length of the request.- Returns:
 - The content length of the request.
 
 
- 
getContentType
String getContentType()
Retrieve the content type of the request.- Returns:
 - The content type of the request.
 
 
- 
getInputStream
InputStream getInputStream() throws IOException
Retrieve the input stream for the request.- Returns:
 - The input stream for the request.
 - Throws:
 IOException- if a problem occurs.
 
- 
getServletContext
javax.servlet.ServletContext getServletContext()
Retrieve the servlet context of the application.- Returns:
 - The servlet context of the application.
 
 
 - 
 
 -