lumis.portal.servicecontainer
Class ServiceContainerRequest

Package class diagram package ServiceContainerRequest
java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by lumis.portal.servicecontainer.ServiceContainerRequest
All Implemented Interfaces:
PortletRequest, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest, IServiceInterfaceRequest
Direct Known Subclasses:
ServiceContainerActionRequest, ServiceContainerRenderRequest

public class ServiceContainerRequest
extends javax.servlet.http.HttpServletRequestWrapper
implements IServiceInterfaceRequest

A IServiceInterfaceRequest implementation that is used by the service container.

Since:
4.0.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
PortletRequest.P3PUserInfos
 
Field Summary
protected  java.lang.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  java.lang.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, javax.servlet.http.HttpServletRequest httpServletRequest)
           
ServiceContainerRequest(SessionConfig sessionConfig, ServiceContainerHttpServletRequest request)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String key)
           
 java.util.Enumeration<java.lang.String> getAttributeNames()
          Returns an Enumeration containing the names of the attributes available to this request.
 java.lang.String getCallerServiceInterfaceInstanceId()
           
 javax.servlet.http.Cookie getCookie(java.lang.String cookieName)
           
 javax.servlet.http.Cookie[] getCookies()
           
 FileParameter getFileParameter(java.lang.String parameterName)
           
 java.util.Locale getLocale()
           
 java.util.Enumeration<java.util.Locale> getLocales()
           
 int getMode()
           
 PageConfig getPageConfig()
           
 PageWebResource getPageWebResource()
          Returns the page web resource for this request.
 java.lang.String getParameter(java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
          Returns a Map of the parameters of this request.
 java.util.Enumeration<java.lang.String> getParameterNames()
          Returns an Enumeration of String objects containing the names of the parameters contained in this request.
 java.lang.String[] getParameterValues(java.lang.String name)
           
 PortalContext getPortalContext()
           
 PortletMode getPortletMode()
           
 PortletSession getPortletSession()
           
 PortletSession getPortletSession(boolean create)
           
 PortletPreferences getPreferences()
           
 java.util.Map<java.lang.String,java.lang.String[]> getPrivateParameterMap()
           
 java.util.Enumeration<java.lang.String> getProperties(java.lang.String name)
           
 java.lang.String getProperty(java.lang.String name)
           
 java.util.Enumeration<java.lang.String> getPropertyNames()
           
 java.util.Map<java.lang.String,java.lang.String[]> getPublicParameterMap()
           
 IServiceInterfaceRequestDispatcher getRequestDispatcher(java.lang.String path)
           
 java.lang.String getResponseContentType()
           
 java.util.Enumeration<java.lang.String> getResponseContentTypes()
           
 ServiceConfig getServiceConfig()
           
 ServiceContainerHttpServletRequest getServiceContainerHttpServletRequest()
           
 ServiceInstanceConfig getServiceInstanceConfig()
           
 int getServiceInstanceDebugLevel()
           
 ServiceInterfaceConfig getServiceInterfaceConfig()
           
 ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
           
 java.lang.String getServiceInterfaceInstanceId()
           
 SessionConfig getSessionConfig()
           
 java.security.Principal getUserPrincipal()
           
 javax.servlet.jsp.el.VariableResolver getVariableResolver()
          Returns the variable resolver for this request's implicit objects.
 java.lang.String getWindowID()
           
 WindowState getWindowState()
           
 boolean isPortletModeAllowed(PortletMode mode)
           
 boolean isPreview()
           
 boolean isUserInRole(java.lang.String arg0)
           
 boolean isWindowStateAllowed(WindowState state)
           
 void removeAttribute(java.lang.String key)
           
 void setAttribute(java.lang.String key, java.lang.Object value)
           
 void setCallerServiceInterfaceInstanceId(java.lang.String callerServiceInterfaceInstanceId)
           
 void setCharacterEncoding(java.lang.String encoding)
          This method does nothing.
 void setMode(int mode)
           
 void setPageWebResource(PageWebResource pageWebResource)
          Sets the page web resource for this request.
 void setPreview(boolean isPreview)
           
 void setServiceConfig(ServiceConfig serviceConfig)
           
 void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
           
 void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
           
 void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
           
 void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
           
 void setServiceInterfaceInstanceFileParameters(java.util.Map<java.lang.String,FileParameter> parameters)
           
 void setServiceInterfaceInstanceParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
           
 void setSessionConfig(SessionConfig sessionConfig)
           
 
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

serviceContainerHttpServletRequest

protected ServiceContainerHttpServletRequest serviceContainerHttpServletRequest

serviceInterfaceInstanceId

protected java.lang.String serviceInterfaceInstanceId

serviceInterfaceInstanceConfig

protected ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig

serviceInterfaceConfig

protected ServiceInterfaceConfig serviceInterfaceConfig

serviceInstanceConfig

protected ServiceInstanceConfig serviceInstanceConfig

callerServiceInterfaceInstanceId

protected java.lang.String callerServiceInterfaceInstanceId

serviceConfig

protected ServiceConfig serviceConfig

pageConfig

protected PageConfig pageConfig

sessionConfig

protected SessionConfig sessionConfig

serviceInstanceDebugLevel

protected int serviceInstanceDebugLevel

isPreview

protected boolean isPreview

mode

protected int mode

preferences

protected PortletPreferences preferences
Preferences of the current user for the current service interface instance. It is loaded on demand by the getPreferences() method.

Since:
4.0.7
Constructor Detail

ServiceContainerRequest

public ServiceContainerRequest(SessionConfig sessionConfig,
                               ServiceContainerHttpServletRequest request)
                        throws java.lang.Exception
Throws:
java.lang.Exception

ServiceContainerRequest

public ServiceContainerRequest(SessionConfig sessionConfig,
                               PortalRequestParameters portalParameters,
                               javax.servlet.http.HttpServletRequest httpServletRequest)
                        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setCharacterEncoding

public void setCharacterEncoding(java.lang.String encoding)
                          throws java.io.UnsupportedEncodingException
This method does nothing. The ServiceContainerRequest character encoding may not be changed.

Specified by:
setCharacterEncoding in interface javax.servlet.ServletRequest
Overrides:
setCharacterEncoding in class javax.servlet.ServletRequestWrapper
Throws:
java.io.UnsupportedEncodingException

getPortletSession

public PortletSession getPortletSession()
Specified by:
getPortletSession in interface PortletRequest

getPortletSession

public PortletSession getPortletSession(boolean create)
Specified by:
getPortletSession in interface PortletRequest

getParameter

public java.lang.String getParameter(java.lang.String name)
Specified by:
getParameter in interface PortletRequest
Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper

getParameterNames

public java.util.Enumeration<java.lang.String> getParameterNames()
Description copied from interface: IServiceInterfaceRequest
Returns an 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.

Specified by:
getParameterNames in interface PortletRequest
Specified by:
getParameterNames in interface javax.servlet.ServletRequest
Specified by:
getParameterNames in interface IServiceInterfaceRequest
Overrides:
getParameterNames in class javax.servlet.ServletRequestWrapper
Returns:
an Enumeration of String objects, each String containing the name of a request parameter; or an empty Enumeration if the request has no parameters.

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Specified by:
getParameterValues in interface PortletRequest
Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper

getParameterMap

public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
Description copied from interface: IServiceInterfaceRequest
Returns a 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.

Specified by:
getParameterMap in interface PortletRequest
Specified by:
getParameterMap in interface javax.servlet.ServletRequest
Specified by:
getParameterMap in interface IServiceInterfaceRequest
Overrides:
getParameterMap in class javax.servlet.ServletRequestWrapper
Returns:
an immutable 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[]).

getUserPrincipal

public java.security.Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface PortletRequest
Specified by:
getUserPrincipal in interface javax.servlet.http.HttpServletRequest
Overrides:
getUserPrincipal in class javax.servlet.http.HttpServletRequestWrapper

isUserInRole

public boolean isUserInRole(java.lang.String arg0)
Specified by:
isUserInRole in interface PortletRequest
Specified by:
isUserInRole in interface javax.servlet.http.HttpServletRequest
Overrides:
isUserInRole in class javax.servlet.http.HttpServletRequestWrapper

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface PortletRequest
Specified by:
getLocale in interface javax.servlet.ServletRequest
Overrides:
getLocale in class javax.servlet.ServletRequestWrapper

getLocales

public java.util.Enumeration<java.util.Locale> getLocales()
Specified by:
getLocales in interface PortletRequest
Specified by:
getLocales in interface javax.servlet.ServletRequest
Overrides:
getLocales in class javax.servlet.ServletRequestWrapper

getAttributeNames

public java.util.Enumeration<java.lang.String> getAttributeNames()
Description copied from interface: IServiceInterfaceRequest
Returns an 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.

Specified by:
getAttributeNames in interface PortletRequest
Specified by:
getAttributeNames in interface javax.servlet.ServletRequest
Specified by:
getAttributeNames in interface IServiceInterfaceRequest
Overrides:
getAttributeNames in class javax.servlet.ServletRequestWrapper
Returns:
an Enumeration of strings containing the names of the request attributes, or an empty Enumeration if the request has no attributes available to it.

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Specified by:
getAttribute in interface PortletRequest
Specified by:
getAttribute in interface javax.servlet.ServletRequest
Overrides:
getAttribute in class javax.servlet.ServletRequestWrapper

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Specified by:
setAttribute in interface PortletRequest
Specified by:
setAttribute in interface javax.servlet.ServletRequest
Overrides:
setAttribute in class javax.servlet.ServletRequestWrapper

removeAttribute

public void removeAttribute(java.lang.String key)
Specified by:
removeAttribute in interface PortletRequest
Specified by:
removeAttribute in interface javax.servlet.ServletRequest
Overrides:
removeAttribute in class javax.servlet.ServletRequestWrapper

getProperty

public java.lang.String getProperty(java.lang.String name)
Specified by:
getProperty in interface PortletRequest

getProperties

public java.util.Enumeration<java.lang.String> getProperties(java.lang.String name)
Specified by:
getProperties in interface PortletRequest

getPropertyNames

public java.util.Enumeration<java.lang.String> getPropertyNames()
Specified by:
getPropertyNames in interface PortletRequest

getPortalContext

public PortalContext getPortalContext()
Specified by:
getPortalContext in interface PortletRequest

getPortletMode

public PortletMode getPortletMode()
Specified by:
getPortletMode in interface PortletRequest

getPreferences

public PortletPreferences getPreferences()
Specified by:
getPreferences in interface PortletRequest

getResponseContentType

public java.lang.String getResponseContentType()
Specified by:
getResponseContentType in interface PortletRequest

getResponseContentTypes

public java.util.Enumeration<java.lang.String> getResponseContentTypes()
Specified by:
getResponseContentTypes in interface PortletRequest

getWindowState

public WindowState getWindowState()
Specified by:
getWindowState in interface PortletRequest

isPortletModeAllowed

public boolean isPortletModeAllowed(PortletMode mode)
Specified by:
isPortletModeAllowed in interface PortletRequest

isWindowStateAllowed

public boolean isWindowStateAllowed(WindowState state)
Specified by:
isWindowStateAllowed in interface PortletRequest

getServiceInterfaceInstanceId

public java.lang.String getServiceInterfaceInstanceId()
Specified by:
getServiceInterfaceInstanceId in interface IServiceInterfaceRequest
Returns:
Returns the serviceInterfaceInstanceId.

getPageConfig

public PageConfig getPageConfig()
Specified by:
getPageConfig in interface IServiceInterfaceRequest
Returns:

getPageWebResource

public PageWebResource getPageWebResource()
Returns the page web resource for this request.

Returns:
the page web resource.
Since:
5.0.0

setPageWebResource

public void setPageWebResource(PageWebResource pageWebResource)
Sets the page web resource for this request.

Parameters:
pageWebResource - the page web resource.
Since:
5.0.0

setSessionConfig

public void setSessionConfig(SessionConfig sessionConfig)
Specified by:
setSessionConfig in interface IServiceInterfaceRequest

getSessionConfig

public SessionConfig getSessionConfig()
Specified by:
getSessionConfig in interface IServiceInterfaceRequest
Returns:

setServiceInterfaceInstanceConfig

public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)

getServiceInterfaceInstanceConfig

public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
Specified by:
getServiceInterfaceInstanceConfig in interface IServiceInterfaceRequest
Returns:
the source page

setServiceInterfaceConfig

public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)

getServiceInterfaceConfig

public ServiceInterfaceConfig getServiceInterfaceConfig()
Specified by:
getServiceInterfaceConfig in interface IServiceInterfaceRequest
Returns:

setServiceInstanceConfig

public void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)

getServiceInstanceConfig

public ServiceInstanceConfig getServiceInstanceConfig()
Specified by:
getServiceInstanceConfig in interface IServiceInterfaceRequest
Returns:

setServiceConfig

public void setServiceConfig(ServiceConfig serviceConfig)

getServiceConfig

public ServiceConfig getServiceConfig()
Specified by:
getServiceConfig in interface IServiceInterfaceRequest
Returns:

getServiceContainerHttpServletRequest

public ServiceContainerHttpServletRequest getServiceContainerHttpServletRequest()

getCookies

public javax.servlet.http.Cookie[] getCookies()
Specified by:
getCookies in interface PortletRequest
Specified by:
getCookies in interface javax.servlet.http.HttpServletRequest
Specified by:
getCookies in interface IServiceInterfaceRequest
Overrides:
getCookies in class javax.servlet.http.HttpServletRequestWrapper

getCookie

public javax.servlet.http.Cookie getCookie(java.lang.String cookieName)
Specified by:
getCookie in interface IServiceInterfaceRequest

getRequestDispatcher

public IServiceInterfaceRequestDispatcher getRequestDispatcher(java.lang.String path)
Specified by:
getRequestDispatcher in interface javax.servlet.ServletRequest
Specified by:
getRequestDispatcher in interface IServiceInterfaceRequest
Overrides:
getRequestDispatcher in class javax.servlet.ServletRequestWrapper

setServiceInstanceDebugLevel

public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)

getServiceInstanceDebugLevel

public int getServiceInstanceDebugLevel()
Specified by:
getServiceInstanceDebugLevel in interface IServiceInterfaceRequest

setServiceInterfaceInstanceParameters

public void setServiceInterfaceInstanceParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getFileParameter

public FileParameter getFileParameter(java.lang.String parameterName)
Specified by:
getFileParameter in interface IServiceInterfaceRequest

setServiceInterfaceInstanceFileParameters

public void setServiceInterfaceInstanceFileParameters(java.util.Map<java.lang.String,FileParameter> parameters)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getCallerServiceInterfaceInstanceId

public java.lang.String getCallerServiceInterfaceInstanceId()
Specified by:
getCallerServiceInterfaceInstanceId in interface IServiceInterfaceRequest
Returns:
Returns the callerServiceInterfaceInstanceConfig.

setCallerServiceInterfaceInstanceId

public void setCallerServiceInterfaceInstanceId(java.lang.String callerServiceInterfaceInstanceId)
Parameters:
callerServiceInterfaceInstanceConfig - The callerServiceInterfaceInstanceConfig to set.

isPreview

public boolean isPreview()
Specified by:
isPreview in interface IServiceInterfaceRequest

setPreview

public void setPreview(boolean isPreview)

getMode

public int getMode()
Specified by:
getMode in interface IServiceInterfaceRequest

setMode

public void setMode(int mode)
Specified by:
setMode in interface IServiceInterfaceRequest

getVariableResolver

public javax.servlet.jsp.el.VariableResolver getVariableResolver()
Returns the variable resolver for this request's implicit objects.

Returns:
the variable resolver for this request's implicit objects.
Since:
4.0.7

getPrivateParameterMap

public java.util.Map<java.lang.String,java.lang.String[]> getPrivateParameterMap()
Specified by:
getPrivateParameterMap in interface PortletRequest

getPublicParameterMap

public java.util.Map<java.lang.String,java.lang.String[]> getPublicParameterMap()
Specified by:
getPublicParameterMap in interface PortletRequest

getWindowID

public java.lang.String getWindowID()
Specified by:
getWindowID in interface PortletRequest


Lumisportal  6.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.