|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
lumis.portal.servicecontainer.ServiceContainerRequest
public class ServiceContainerRequest
A IServiceInterfaceRequest
implementation that is used by the service container.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest |
---|
PortletRequest.P3PUserInfos |
Field Summary | |
---|---|
protected ServiceInterfaceInstanceConfig |
baseServiceInterfaceInstanceConfig
|
protected IBusinessContext |
businessContext
|
protected String |
callerServiceInterfaceInstanceId
|
protected boolean |
isPreview
|
protected int |
mode
|
protected PageConfig |
pageConfig
|
protected PortletPreferences |
preferences
Preferences of the current user for the current service interface instance. |
protected ServiceConfig |
serviceConfig
|
protected ServiceContainerHttpServletRequest |
serviceContainerHttpServletRequest
|
protected ServiceInstanceConfig |
serviceInstanceConfig
|
protected int |
serviceInstanceDebugLevel
|
protected ServiceInterfaceConfig |
serviceInterfaceConfig
|
protected ServiceInterfaceInstanceConfig |
serviceInterfaceInstanceConfig
|
protected String |
serviceInterfaceInstanceId
|
protected SessionConfig |
sessionConfig
|
Fields inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequest |
---|
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE |
Fields inherited from interface javax.portlet.PortletRequest |
---|
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO |
Fields inherited from interface javax.servlet.http.HttpServletRequest |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary | |
---|---|
ServiceContainerRequest(SessionConfig sessionConfig,
PortalRequestParameters portalParameters,
HttpServletRequest httpServletRequest,
ReplaceInterfacesStorage replaceInterfacesStorage)
|
|
ServiceContainerRequest(SessionConfig sessionConfig,
ServiceContainerHttpServletRequest request,
ReplaceInterfacesStorage replaceInterfacesStorage)
|
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
---|
getAuthType, getContextPath, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid |
Methods inherited from class javax.servlet.ServletRequestWrapper |
---|
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getScheme, getServerName, getServerPort, isSecure, setRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequest |
---|
getHeader |
Methods inherited from interface javax.portlet.PortletRequest |
---|
getAuthType, getContextPath, getRemoteUser, getRequestedSessionId, getScheme, getServerName, getServerPort, isRequestedSessionIdValid, isSecure |
Methods inherited from interface javax.servlet.ServletRequest |
---|
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getScheme, getServerName, getServerPort, isSecure |
Field Detail |
---|
protected ServiceContainerHttpServletRequest serviceContainerHttpServletRequest
protected String serviceInterfaceInstanceId
protected ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig
protected ServiceInterfaceInstanceConfig baseServiceInterfaceInstanceConfig
protected ServiceInterfaceConfig serviceInterfaceConfig
protected ServiceInstanceConfig serviceInstanceConfig
protected String callerServiceInterfaceInstanceId
protected ServiceConfig serviceConfig
protected PageConfig pageConfig
protected SessionConfig sessionConfig
protected int serviceInstanceDebugLevel
protected boolean isPreview
protected int mode
protected IBusinessContext businessContext
protected PortletPreferences preferences
getPreferences()
method.
Constructor Detail |
---|
public ServiceContainerRequest(SessionConfig sessionConfig, ServiceContainerHttpServletRequest request, ReplaceInterfacesStorage replaceInterfacesStorage) throws Exception
Exception
public ServiceContainerRequest(SessionConfig sessionConfig, PortalRequestParameters portalParameters, HttpServletRequest httpServletRequest, ReplaceInterfacesStorage replaceInterfacesStorage) throws Exception
Exception
Method Detail |
---|
public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException
setCharacterEncoding
in interface ServletRequest
setCharacterEncoding
in class ServletRequestWrapper
UnsupportedEncodingException
public PortletSession getPortletSession()
getPortletSession
in interface PortletRequest
public PortletSession getPortletSession(boolean create)
getPortletSession
in interface PortletRequest
public String getParameter(String name)
getParameter
in interface PortletRequest
getParameter
in interface ServletRequest
getParameter
in class ServletRequestWrapper
public Enumeration<String> getParameterNames()
IServiceInterfaceRequest
Enumeration
of String
objects
containing the names of the parameters contained in this request. If the
request has no parameters, the method returns an empty
Enumeration
.
Only parameters targeted to the current service interface are returned.
getParameterNames
in interface PortletRequest
getParameterNames
in interface ServletRequest
getParameterNames
in interface IServiceInterfaceRequest
getParameterNames
in class ServletRequestWrapper
Enumeration
of String
objects,
each String
containing the name of a request
parameter; or an empty Enumeration
if the request
has no parameters.public String[] getParameterValues(String name)
getParameterValues
in interface PortletRequest
getParameterValues
in interface ServletRequest
getParameterValues
in class ServletRequestWrapper
public Map<String,String[]> getParameterMap()
IServiceInterfaceRequest
Map
of the parameters of this request. Request
parameters are extra information sent with the request. The returned
parameters are "x-www-form-urlencoded" decoded.
The values in the returned Map
are from type String array (
String[]
).
If no parameters exist this method returns an empty Map
.
getParameterMap
in interface PortletRequest
getParameterMap
in interface ServletRequest
getParameterMap
in interface IServiceInterfaceRequest
getParameterMap
in class ServletRequestWrapper
Map
containing parameter names as
keys and parameter values as map values, or an empty
Map
if no parameters exist. The keys in the
parameter map are of type String. The values in the parameter map
are of type String array (String[]
).public Principal getUserPrincipal()
getUserPrincipal
in interface PortletRequest
getUserPrincipal
in interface HttpServletRequest
getUserPrincipal
in class HttpServletRequestWrapper
public boolean isUserInRole(String arg0)
isUserInRole
in interface PortletRequest
isUserInRole
in interface HttpServletRequest
isUserInRole
in class HttpServletRequestWrapper
public Locale getLocale()
getLocale
in interface PortletRequest
getLocale
in interface ServletRequest
getLocale
in class ServletRequestWrapper
public Enumeration<Locale> getLocales()
getLocales
in interface PortletRequest
getLocales
in interface ServletRequest
getLocales
in class ServletRequestWrapper
public Enumeration<String> getAttributeNames()
IServiceInterfaceRequest
Enumeration
containing the names of the
attributes available to this request. This method returns an empty
Enumeration
if the request has no attributes available to
it.
getAttributeNames
in interface PortletRequest
getAttributeNames
in interface ServletRequest
getAttributeNames
in interface IServiceInterfaceRequest
getAttributeNames
in class ServletRequestWrapper
Enumeration
of strings containing the names of
the request attributes, or an empty Enumeration
if
the request has no attributes available to it.public Object getAttribute(String key)
getAttribute
in interface PortletRequest
getAttribute
in interface ServletRequest
getAttribute
in class ServletRequestWrapper
public void setAttribute(String key, Object value)
setAttribute
in interface PortletRequest
setAttribute
in interface ServletRequest
setAttribute
in class ServletRequestWrapper
public void removeAttribute(String key)
removeAttribute
in interface PortletRequest
removeAttribute
in interface ServletRequest
removeAttribute
in class ServletRequestWrapper
public String getProperty(String name)
getProperty
in interface PortletRequest
public Enumeration<String> getProperties(String name)
getProperties
in interface PortletRequest
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface PortletRequest
public PortalContext getPortalContext()
getPortalContext
in interface PortletRequest
public PortletMode getPortletMode()
getPortletMode
in interface PortletRequest
public PortletPreferences getPreferences()
getPreferences
in interface PortletRequest
public String getResponseContentType()
getResponseContentType
in interface PortletRequest
public Enumeration<String> getResponseContentTypes()
getResponseContentTypes
in interface PortletRequest
public WindowState getWindowState()
getWindowState
in interface PortletRequest
public boolean isPortletModeAllowed(PortletMode mode)
isPortletModeAllowed
in interface PortletRequest
public boolean isWindowStateAllowed(WindowState state)
isWindowStateAllowed
in interface PortletRequest
public String getServiceInterfaceInstanceId()
getServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public PageConfig getPageConfig()
getPageConfig
in interface IServiceInterfaceRequest
public PageWebResource getPageWebResource()
IServiceInterfaceRequest
PageWebResource
of this request.
getPageWebResource
in interface IServiceInterfaceRequest
PageWebResource
of this request.public void setPageWebResource(PageWebResource pageWebResource)
pageWebResource
- the page web resource.public void setSessionConfig(SessionConfig sessionConfig)
setSessionConfig
in interface IServiceInterfaceRequest
public SessionConfig getSessionConfig()
getSessionConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
getServiceInterfaceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
public ServiceInterfaceConfig getServiceInterfaceConfig()
getServiceInterfaceConfig
in interface IServiceInterfaceRequest
public void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
public ServiceInstanceConfig getServiceInstanceConfig()
getServiceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceConfig(ServiceConfig serviceConfig)
public ServiceConfig getServiceConfig()
getServiceConfig
in interface IServiceInterfaceRequest
public ServiceContainerHttpServletRequest getServiceContainerHttpServletRequest()
IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.
getServiceContainerHttpServletRequest
in interface IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.public Cookie[] getCookies()
getCookies
in interface PortletRequest
getCookies
in interface HttpServletRequest
getCookies
in interface IServiceInterfaceRequest
getCookies
in class HttpServletRequestWrapper
public Cookie getCookie(String cookieName)
getCookie
in interface IServiceInterfaceRequest
public IServiceInterfaceRequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface ServletRequest
getRequestDispatcher
in interface IServiceInterfaceRequest
getRequestDispatcher
in class ServletRequestWrapper
public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
public int getServiceInstanceDebugLevel()
getServiceInstanceDebugLevel
in interface IServiceInterfaceRequest
public void setServiceInterfaceInstanceParameters(Map<String,String[]> parameters) throws Exception
Exception
public FileParameter getFileParameter(String parameterName)
getFileParameter
in interface IServiceInterfaceRequest
public void setServiceInterfaceInstanceFileParameters(Map<String,FileParameter> parameters) throws Exception
Exception
public String getCallerServiceInterfaceInstanceId()
getCallerServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
callerServiceInterfaceInstanceConfig
- The callerServiceInterfaceInstanceConfig to set.public boolean isPreview()
isPreview
in interface IServiceInterfaceRequest
public void setPreview(boolean isPreview)
public int getMode()
getMode
in interface IServiceInterfaceRequest
public void setMode(int mode)
setMode
in interface IServiceInterfaceRequest
public VariableResolver getVariableResolver()
IServiceInterfaceRequestSPI
VariableResolver
for this request.
getVariableResolver
in interface IServiceInterfaceRequestSPI
VariableResolver
for this request.public FunctionMapper getFunctionMapper()
IServiceInterfaceRequestSPI
FunctionMapper
for this request.
getFunctionMapper
in interface IServiceInterfaceRequestSPI
FunctionMapper
for this request.public Map<String,String[]> getPrivateParameterMap()
getPrivateParameterMap
in interface PortletRequest
public Map<String,String[]> getPublicParameterMap()
getPublicParameterMap
in interface PortletRequest
public String getWindowID()
getWindowID
in interface PortletRequest
public IBusinessContext getBusinessContext()
IServiceInterfaceRequest
getBusinessContext
in interface IServiceInterfaceRequest
protected FunctionMapper createFunctionMapper(ServiceContainerResponse response)
FunctionMapper
based on the given response.
response
- the response.
FunctionMapper
.protected void setResponse(ServiceContainerResponse response)
response
- the response.public ServiceInterfaceInstanceConfig getBaseServiceInterfaceInstanceConfig()
public void setBaseServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig baseServiceInterfaceInstanceConfig)
baseServiceInterfaceInstanceConfig
- the base interface instance.public ReplaceInterfacesStorage getReplaceInterfacesStorage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |