org.aselect.server.request.handler
Class AbstractRequestHandler

java.lang.Object
  extended by 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

Field Summary
protected  ASelectConfigManager _configManager
           
protected  javax.servlet.ServletConfig _oServletConfig
           
protected  SessionManager _oSessionManager
           
protected  ASelectSystemLogger _systemLogger
           
 
Constructor Summary
AbstractRequestHandler()
           
 
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
 
Methods inherited from interface org.aselect.server.request.handler.IRequestHandler
destroy, process
 

Field Detail

_systemLogger

protected ASelectSystemLogger _systemLogger

_configManager

protected ASelectConfigManager _configManager

_oSessionManager

protected SessionManager _oSessionManager

_oServletConfig

protected javax.servlet.ServletConfig _oServletConfig
Constructor Detail

AbstractRequestHandler

public AbstractRequestHandler()
Method Detail

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 servlet
    oConfig - 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.