org.aselect.server.request.handler
Class AbstractRequestHandler
java.lang.Object
org.aselect.server.request.handler.AbstractRequestHandler
- All Implemented Interfaces:
- IRequestHandler
- Direct Known Subclasses:
- ASelectAuthenticationProfile, ASelectAuthenticationProfile, ASelectRestartRequestHandler, AttributeProcessorProceeder, CookieMonsterHandler, SAML11ArtifactRequestHandler, SAML11QueryRequestHandler, SAML11RequestHandler, SFSIdpQueryHandler, ShibbolethAuthenticationProfile, ShibbolethWAYFProfile, SSONotifcationServiceHandler, SSOServiceHandler
public abstract class AbstractRequestHandler
- extends java.lang.Object
- implements IRequestHandler
Abstract class implementing the basic functionality of a Request handler.
Description:
Reads default configuration and contains functionality for request handling.
Concurrency issues:
-
- Author:
- Alfa & Ariss
Method Summary |
java.lang.String |
getID()
Returns the handler ID as String . |
java.util.regex.Pattern |
getPattern()
Returns the configured target as Pattern object. |
void |
init(javax.servlet.ServletConfig oServletConfig,
java.lang.Object oConfig)
Initializes the default functionality for a RequestHandler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_systemLogger
protected ASelectSystemLogger _systemLogger
_configManager
protected ASelectConfigManager _configManager
_oSessionManager
protected SessionManager _oSessionManager
_oServletConfig
protected javax.servlet.ServletConfig _oServletConfig
AbstractRequestHandler
public AbstractRequestHandler()
init
public void init(javax.servlet.ServletConfig oServletConfig,
java.lang.Object oConfig)
throws ASelectException
- Initializes the default functionality for a RequestHandler.
Description:
- Reads the configuration
- Verifies if the configured 'target' is a regular expression
Concurrency issues:
-
Preconditions:
Reads the following configuration:
<handler id='[id]' class='[class]' target='[target]'>
...
</handler
- id - Unique ID of the handler
- class - Class name of the handler, must implement the
IRequestHandler
interface
- target - The regular expression of URLs that will be handled
by this request handler
- Specified by:
init
in interface IRequestHandler
- Parameters:
oServletConfig
- Servlet Config of the Parent servletoConfig
- Object containing the RequestHandler configuration
- Throws:
ASelectException
- if initalization fails- See Also:
IRequestHandler.init(javax.servlet.ServletConfig, java.lang.Object)
getID
public java.lang.String getID()
- Returns the handler ID as
String
.
- Specified by:
getID
in interface IRequestHandler
- Returns:
- String continaing the requesthandler
- See Also:
IRequestHandler.getID()
getPattern
public java.util.regex.Pattern getPattern()
- Returns the configured target as
Pattern
object.
- Specified by:
getPattern
in interface IRequestHandler
- Returns:
- Pattern that contains the regular expression that will handle the request
- See Also:
IRequestHandler.getPattern()
Copyright © 2008 SURFnet BV. All Rights Reserved.