Package com.artisol.teneo.engine.webapp
Class ServletEngineEnvironment
- Object
-
- AbstractEngineEnvironment
-
- ServletEngineEnvironment
-
- All Implemented Interfaces:
EngineEnvironmentI
- Direct Known Subclasses:
HttpEngineEnvironment
public class ServletEngineEnvironment extends AbstractEngineEnvironment
Provides access to request data in a servlet container environment. Instances of this class are passed directly to solution scripts.- Version:
- 7.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCharacterEncoding()
CallsServletRequest.getCharacterEncoding()
on the request object.int
getContentLength()
CallsServletRequest.getContentLength()
on the request object.String
getContentType()
CallsServletRequest.getContentType()
on the request object.ServletInputStream
getInputStream()
CallsServletRequest.getInputStream()
on the request object.String
getLocalAddr()
CallsServletRequest.getLocalAddr()
on the request object.Locale
getLocale()
CallsServletRequest.getLocale()
on the request object.Enumeration<Locale>
getLocales()
CallsServletRequest.getLocales()
on the request object.String
getLocalName()
CallsServletRequest.getLocalName()
on the request object.int
getLocalPort()
CallsServletRequest.getLocalPort()
on the request object.String
getParameter(String _sName)
CallsServletRequest.getParameter(java.lang.String)
on the request object.Map<String,String[]>
getParameterMap()
CallsServletRequest.getParameterMap()
on the request object.Map<String,Object>
getParameters()
Returns arbitrary typed request parameters parsed from the request body content.String
getProtocol()
CallsServletRequest.getProtocol()
on the request object.BufferedReader
getReader()
CallsServletRequest.getReader()
on the request object.String
getRemoteAddr()
CallsServletRequest.getRemoteAddr()
on the request object.String
getRemoteHost()
CallsServletRequest.getRemoteHost()
on the request object.int
getRemotePort()
CallsServletRequest.getRemotePort()
on the request object.String
getServerName()
CallsServletRequest.getServerName()
on the request object.int
getServerPort()
CallsServletRequest.getServerPort()
on the request object.boolean
isInstanceOf(String _sTypeName)
Checks whether this class or an ancestor is an instance of the given type name.boolean
isSecure()
CallsServletRequest.isSecure()
on the request object.
-
-
-
Method Detail
-
isInstanceOf
public boolean isInstanceOf(String _sTypeName)
Checks whether this class or an ancestor is an instance of the given type name.- Specified by:
isInstanceOf
in interfaceEngineEnvironmentI
- Overrides:
isInstanceOf
in classAbstractEngineEnvironment
- Returns:
true
if and only if the given type name equals"ServletEngineEnvironment"
or one of the type names of the ancestor classes- Since:
- 1.0
-
getCharacterEncoding
public String getCharacterEncoding()
CallsServletRequest.getCharacterEncoding()
on the request object.- Since:
- 1.0
-
getContentLength
public int getContentLength()
CallsServletRequest.getContentLength()
on the request object.- Since:
- 1.0
-
getContentType
public String getContentType()
CallsServletRequest.getContentType()
on the request object.- Since:
- 1.0
-
getInputStream
public ServletInputStream getInputStream() throws IOException
CallsServletRequest.getInputStream()
on the request object.- Throws:
IOException
- Since:
- 1.0
-
getLocalAddr
public String getLocalAddr()
CallsServletRequest.getLocalAddr()
on the request object.- Since:
- 1.0
-
getLocale
public Locale getLocale()
CallsServletRequest.getLocale()
on the request object.- Since:
- 1.0
-
getLocales
public Enumeration<Locale> getLocales()
CallsServletRequest.getLocales()
on the request object.- Since:
- 1.0
-
getLocalName
public String getLocalName()
CallsServletRequest.getLocalName()
on the request object.- Since:
- 1.0
-
getLocalPort
public int getLocalPort()
CallsServletRequest.getLocalPort()
on the request object.- Since:
- 1.0
-
getParameter
public String getParameter(String _sName)
CallsServletRequest.getParameter(java.lang.String)
on the request object.- Since:
- 1.0
-
getParameterMap
public Map<String,String[]> getParameterMap()
CallsServletRequest.getParameterMap()
on the request object.- Since:
- 1.0
- See Also:
getParameters()
-
getParameters
public Map<String,Object> getParameters()
Returns arbitrary typed request parameters parsed from the request body content. Also contains parameters given on the request URL. The parameter values can benull
, of a primitive type (likeBoolean
,Number
,String
), or of typeList<Object>
orMap<String,Object>
(also nested), eventually containing elements/values of a primitive type. The actual object layout depends on the request data.This is an extension of standard servlet API method
getParameterMap()
. The returned map contains all parameters also returned by that method, but the parameter values are not restricted to typeString
.- Since:
- 6.0
- See Also:
getParameterMap()
-
getProtocol
public String getProtocol()
CallsServletRequest.getProtocol()
on the request object.- Since:
- 1.0
-
getReader
public BufferedReader getReader() throws IOException
CallsServletRequest.getReader()
on the request object.- Throws:
IOException
- Since:
- 1.0
-
getRemoteAddr
public String getRemoteAddr()
CallsServletRequest.getRemoteAddr()
on the request object.- Since:
- 1.0
-
getRemoteHost
public String getRemoteHost()
CallsServletRequest.getRemoteHost()
on the request object.- Since:
- 1.0
-
getRemotePort
public int getRemotePort()
CallsServletRequest.getRemotePort()
on the request object.- Since:
- 1.0
-
getServerName
public String getServerName()
CallsServletRequest.getServerName()
on the request object.- Since:
- 1.0
-
getServerPort
public int getServerPort()
CallsServletRequest.getServerPort()
on the request object.- Since:
- 1.0
-
isSecure
public boolean isSecure()
CallsServletRequest.isSecure()
on the request object.- Since:
- 1.0
-
-