| java.lang.Object org.apache.beehive.netui.pageflow.DefaultServletContainerAdapter
DefaultServletContainerAdapter | abstract public class DefaultServletContainerAdapter implements ServletContainerAdapter(Code) | | Default implementation of a Servlet container adapter.
|
Method Summary | |
public void | beginRequest(HttpServletRequest request, HttpServletResponse response) Called at the beginning of each processed request. | public Object | createControlBeanContext(HttpServletRequest request, HttpServletResponse response) Get a context object to support Beehive Controls. | protected PageFlowEventReporter | createEventReporter() | public boolean | doSecurityRedirect(String path, HttpServletRequest request, HttpServletResponse response) Cause the server to do a security check for the given path. | public void | endRequest(HttpServletRequest request, HttpServletResponse response) Called at the end of each processed request. | public void | ensureFailover(String attrName, Object attrVal, HttpServletRequest request) Ensure that the given session attribute is replicated in a cluster for session failover.
This method does not need to be implemented for servers that do not support clustering and
session failover. | public PageFlowEventReporter | getEventReporter() Get an event reporter, which will be notified of events like "page flow created", "action raised", etc. | public Factory | getFactory(Class factoryType, String id, FactoryConfig config) Generic method to get a Factory class that may be container dependent. | public String | getFullContextPath(HttpServletRequest request) Return the webapp context path for the given request. | public int | getListenPort(HttpServletRequest request) Get the port on which the server is listening for unsecure connections. | public String | getPlatformName() Get the name of the platform, which may be used to find platform-specific configuration files. | public int | getSecureListenPort(HttpServletRequest request) Get the port on which the server is listening for secure connections. | public SecurityProtocol | getSecurityProtocol(String path, HttpServletRequest request) Tell whether a web application resource requires a secure transport protocol. | protected ServletContext | getServletContext() Get the current ServletContext. | public boolean | isInProductionMode() Tell whether the system is in production mode. | public void | login(String username, String password, HttpServletRequest request, HttpServletResponse response) Log in the user, using "weak" username/password authentication. | public void | logout(boolean invalidateSessions, HttpServletRequest request, HttpServletResponse response) Log out the user. | public void | setContext(AdapterContext context) Set the AdapterContext. |
DefaultServletContainerAdapter | protected DefaultServletContainerAdapter()(Code) | | |
beginRequest | public void beginRequest(HttpServletRequest request, HttpServletResponse response)(Code) | | Called at the beginning of each processed request. This default implementation does nothing.
Parameters: request - the current HttpServletRequest. Parameters: response - the current HttpServletResponse. |
createControlBeanContext | public Object createControlBeanContext(HttpServletRequest request, HttpServletResponse response)(Code) | | Get a context object to support Beehive Controls. This default implementation returns an instance of
PageFlowBeanContext .
Parameters: request - the current HttpServletRequest. Parameters: response - the current HttpServletResponse. a new ControlBeanContext. |
endRequest | public void endRequest(HttpServletRequest request, HttpServletResponse response)(Code) | | Called at the end of each processed request. This default implementation does nothing.
Parameters: request - the current HttpServletRequest. Parameters: response - the current HttpServletResponse. |
ensureFailover | public void ensureFailover(String attrName, Object attrVal, HttpServletRequest request)(Code) | | Ensure that the given session attribute is replicated in a cluster for session failover.
This method does not need to be implemented for servers that do not support clustering and
session failover. The default implementation does nothing.
Parameters: attrName - the name of the session attribute for which failover should be ensured. Parameters: attrVal - the value of the given session attribute. Parameters: request - the current HttpServletRequest. |
getFactory | public Factory getFactory(Class factoryType, String id, FactoryConfig config)(Code) | | Generic method to get a Factory class that may be container dependent.
This method is called to get the following Factory implementations:
Parameters: factoryType - the class type that the factory should extend or implement Parameters: id - can be used for the case where there is more than one possible Factorythat extends or implaments the class type. Parameters: config - a configuration object passed to a Factory a Factory class that extends or implemtents the given class type. |
getFullContextPath | public String getFullContextPath(HttpServletRequest request)(Code) | | Return the webapp context path for the given request. This can differ from HttpServletRequest.getContextPath()
only in that it will return a valid value even if the request is for the default webapp. This default
implementation always returns the value of getContextPath() on the request.
Parameters: request - the current HttpServletRequest. the value of getContextPath() on the current request. |
getListenPort | public int getListenPort(HttpServletRequest request)(Code) | | Get the port on which the server is listening for unsecure connections. This default implementation always
returns -1 .
Parameters: request - the current HttpServletRequest. -1 . |
getPlatformName | public String getPlatformName()(Code) | | Get the name of the platform, which may be used to find platform-specific configuration files. This default
implementation returns "generic".
the name of the platform ("generic" in this default implementation). |
getSecureListenPort | public int getSecureListenPort(HttpServletRequest request)(Code) | | Get the port on which the server is listening for secure connections. This default implementation always
returns -1 .
Parameters: request - the current HttpServletRequest. -1 . |
getServletContext | protected ServletContext getServletContext()(Code) | | Get the current ServletContext.
the current ServletContext. |
isInProductionMode | public boolean isInProductionMode()(Code) | | Tell whether the system is in production mode.
true if the system property "beehive.productionmode" is set to "true", or if asserts aredisabled for this class in the case where the system property has no value; false if thesystem property is set to "false", or if asserts are enabled for this class in the case where thesystem property has no value. |
setContext | public void setContext(AdapterContext context)(Code) | | Set the AdapterContext.
Parameters: context - the AdapterContext to set. |
|
|