Interface IExecutionContext.IRequest
- Enclosing interface:
IExecutionContext
public static interface IExecutionContext.IRequest
The request interface.
- Since:
- 2.1
- Version:
- 1.0, 09/09/2009
- Author:
- vlygeros
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) Gets an attribute from the request.Gets all the attribute names.Returns the base server url (e.g.Return base application url (ex : http://vdocservername:vdocserverport/vdocpath)Gets the context path.getCookieValue
(String name) Gets a cookie valueGets the input stream of the request.Gets the native request object.getParameter
(String key) Gets a parameter by its key.Gets the parmeter map.String[]
getParameters
(String key) Gets all the parameters associated with a key.String[]
getParameterValues
(String key) Gets all the values associated with a key.Gets the requested string.Gets the request URI.Gets the scheme (http, https, ...).getScope()
Gets the server name.int
Gets the port number.Gets the session.Gets the user agent.boolean
isSecure()
check if the connection is securevoid
setAttribute
(String key, Object value) Sets an attribute.void
setContextKey
(String contextKey) void
-
Method Details
-
getNativeRequest
Object getNativeRequest()Gets the native request object.- Returns:
- Returns the native request object.
-
setAttribute
Sets an attribute.- Parameters:
key
- The key of the attribute.value
- The value of the attribute.
-
getAttribute
Gets an attribute from the request.- Parameters:
key
- The key of the attribute to retrieve.- Returns:
- A value associated to the attribute.
-
getAttributeNames
Enumeration getAttributeNames()Gets all the attribute names.- Returns:
- An java.util.Enumeration object.
-
getSession
IExecutionContext.ISession getSession()Gets the session.- Returns:
- A
IExecutionContext.ISession
object.
-
getUserAgent
String getUserAgent()Gets the user agent.- Returns:
- The user agent as a java.lang.String object.
-
getQueryString
String getQueryString()Gets the requested string.- Returns:
- The requested string as a java.lang.String object.
-
getParameterMap
Map getParameterMap()Gets the parmeter map.- Returns:
- The parameter map.
-
getParameter
Gets a parameter by its key.- Parameters:
key
- The key of the parameter.- Returns:
- The parameter associated with the key.
-
getParameters
Gets all the parameters associated with a key.- Parameters:
key
- The key of the parameters.- Returns:
- All the parameters associated with the key.
-
getParameterValues
Gets all the values associated with a key.- Parameters:
key
- The key of the parameters.- Returns:
- All the values associated with the key.
-
getCookieValue
Gets a cookie value- Parameters:
name
-- Returns:
- A java.lang.String object.
-
getRequestURI
String getRequestURI()Gets the request URI.- Returns:
- A java.lang.String object.
-
getContextPath
String getContextPath()Gets the context path.- Returns:
- A java.lang.String object.
-
getScheme
String getScheme()Gets the scheme (http, https, ...).- Returns:
- A java.lang.String object.
-
getServerName
String getServerName()Gets the server name.- Returns:
- A java.lang.String object.
-
getServerPort
int getServerPort()Gets the port number.- Returns:
- The port number.
-
getInputStream
Gets the input stream of the request.- Returns:
- A
InputStream
object. - Throws:
IOException
- An IO exception.
-
getResponseContentType
String getResponseContentType() -
getContentType
String getContentType() -
getScope
String getScope() -
setScope
-
getContextKey
String getContextKey() -
setContextKey
-
getLocale
Locale getLocale() -
getLocales
Enumeration getLocales() -
getRemoteAddr
String getRemoteAddr() -
getRemoteHost
String getRemoteHost() -
getRemoteUser
String getRemoteUser() -
getBaseUrl
String getBaseUrl()Return base application url (ex : http://vdocservername:vdocserverport/vdocpath)- Returns:
- base application url
-
getBaseServerUrl
String getBaseServerUrl()Returns the base server url (e.g. : http://vdocservername:vdocserverport)- Returns:
- base server url
-
getReferer
String getReferer() -
getHeader
-
getRequestURL
StringBuffer getRequestURL() -
isSecure
boolean isSecure()check if the connection is secure- Returns:
- true is scheme is https
-