org.abstracthorizon.danube.http
Class HTTPContext

java.lang.Object
  extended by org.abstracthorizon.danube.http.Selector
      extended by org.abstracthorizon.danube.http.HTTPContext
All Implemented Interfaces:
ConnectionHandler
Direct Known Subclasses:
JAASAuthenticatedHTTPContext

public class HTTPContext
extends Selector

This class marks start of "web application" by setting context path. All, potential, session handling will be done using context path - path this component is defined on.

Author:
Daniel Sendula

Field Summary
 
Fields inherited from class org.abstracthorizon.danube.http.Selector
components, errorResponse
 
Constructor Summary
HTTPContext()
          Constructor
 
Method Summary
 void handleConnection(Connection connection)
          This method creates sets context path to be same as context path up to here plus this component's path.
 
Methods inherited from class org.abstracthorizon.danube.http.Selector
getComponents, getErrorResponse, setComponents, setErrorResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPContext

public HTTPContext()
Constructor

Method Detail

handleConnection

public void handleConnection(Connection connection)
This method creates sets context path to be same as context path up to here plus this component's path. Component's path is reset to "/"

Specified by:
handleConnection in interface ConnectionHandler
Overrides:
handleConnection in class Selector
Parameters:
connection - socket connection


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.