Package de.xima.fc.interfaces.http
Interface IRequestContext
- All Known Implementing Classes:
HttpServletRequestContext
public interface IRequestContext
Represents the body of an HTTP request.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Retrieves the attribute for the given name.Retrieve the character encoding for the request.int
Retrieve the content length of the request.Retrieve the content type of the request.Retrieve the input stream for the request.javax.servlet.ServletContext
Retrieve the servlet context of the application.
-
Method Details
-
getAttribute
Retrieves the attribute for the given name.- Parameters:
name
- to retrieve request context attribute for.- Returns:
- the attribute or
null
if 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
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.
-