Package com.mendix.m2ee.api
Interface IMxRuntimeRequest
public interface IMxRuntimeRequest
This interface represents a request coming in to the runtime.
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]This method is only here for backwards compatibility and should not be used.Returns the AppContainer corresponding to this request.Returns the value of the cookie.Returns the name of the file.Returns the file as a binary data stream.Returns the value of a header.javax.servlet.http.HttpServletRequestReturns the HttpServletRequest underlying this runtime request.Returns the body of the request as a binary data stream.getParameter(String paramName) Returns the parameter value.Returns the IP address of the client that sent the request.Returns the request serialized as a string.Returns the extra path information of this request, for example when the full URL is http://www.example.com/web/ui/index.htm, it returns /web/ui/index.htmlbooleanReturns true if this request is a file upload.
- 
Method Details- 
getRequestStringString getRequestString()Returns the request serialized as a string.
- 
getParameterReturns the parameter value.- Parameters:
- paramName- the parameter name
- Returns:
- the value of the parameter if it exists, otherwise null
 
- 
getCookieReturns the value of the cookie.- Parameters:
- cookieName- the name of the cookie
- Returns:
- the value of the cookie if it exists, otherwise null
 
- 
getCookie
- 
isFileUploadboolean isFileUpload()Returns true if this request is a file upload.
- 
getRemoteAddrString getRemoteAddr()Returns the IP address of the client that sent the request.
- 
getInputStreamReturns the body of the request as a binary data stream.- Returns:
- the body of the request
- Throws:
- IOException- if an input or output exception occurs
 
- 
getFileItemStreamReturns the file as a binary data stream.- Returns:
- the binary data stream
- Throws:
- RuntimeException- if the request is not a file upload
- IOException
 
- 
getFileItemNameString getFileItemName()Returns the name of the file.- Returns:
- the name of the file
- Throws:
- RuntimeException- if the request is not a file upload
 
- 
getResourcePathString getResourcePath()Returns the extra path information of this request, for example when the full URL is http://www.example.com/web/ui/index.htm, it returns /web/ui/index.html
- 
getHeaderReturns the value of a header.- Parameters:
- header- the header name
- Returns:
- the value of the header
 
- 
getContextIAppContainer getContext()Returns the AppContainer corresponding to this request.
- 
getHttpServletRequestjavax.servlet.http.HttpServletRequest getHttpServletRequest()Returns the HttpServletRequest underlying this runtime request.
- 
createFingerprintbyte[] createFingerprint()This method is only here for backwards compatibility and should not be used.
 
-