|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.tapestry.TapestryConnectionHandler
public class TapestryConnectionHandler
Tapestry connection handler.
During initialisation it reads tapestry application configuration file
which defaults to TAPESTRY_DEFAULT_APPLICATION_NAME
("tapestry.application").
Field Summary | |
---|---|
protected String |
applicationSpecificationResourceName
Application specification resource name. |
protected org.apache.hivemind.ClassResolver |
classResolver
Tapestry's class resolver |
protected Map<String,String> |
initialParameters
Initial parameters |
protected org.slf4j.Logger |
logger
Logger |
protected org.apache.hivemind.Registry |
registry
Tapestry's registry |
protected HTTPSessionManager |
sessionManager
Danube's session manager |
static String |
TAPESTRY_DEFAULT_APPLICATION_NAME
Default tapestry application configuration file |
static String |
TAPESTRY_SUFFIX
Suffix of tapestry configuration files |
protected WebActivator |
webActivator
Web activator implementation reference |
protected WebContext |
webContext
Web context implementation reference |
protected WebRequestServicer |
webRequestServicer
Tapestry's web request servicer |
Constructor Summary | |
---|---|
TapestryConnectionHandler()
|
Method Summary | |
---|---|
protected org.apache.hivemind.ErrorHandler |
constructErrorHandler()
Constructs error handler. |
protected org.apache.hivemind.ClassResolver |
createClassResolver()
Creates class resolver. |
protected HTTPSessionManager |
createSessionManager()
Creates session manager. |
String |
getApplicationSpecificationResourceName()
Returns name of application specification resource |
org.apache.hivemind.ClassResolver |
getClassResolver()
Returns class resolver. |
Map<String,String> |
getInitialParameters()
Returns initial parameters. |
HTTPSessionManager |
getSessionManager()
Returns session manager. |
WebActivator |
getWebActivator()
Returns web activator. |
WebContext |
getWebContext()
Returns web context assigned to this handler. |
void |
handleConnection(Connection connection)
Handles connection by creating DanubeRequest and DanubeResponse
and invokes servicer's service method. |
void |
init()
Initialises this connection handler |
protected org.apache.hivemind.Resource |
obtainApplicationResource()
Obtains application resource. |
protected WebContext |
obtainWebContext()
Creates WebContext . |
void |
setApplicationSpecificationResourceName(String applicationSpecificationResourceName)
Sets name of application specification resource |
void |
setClassResolver(org.apache.hivemind.ClassResolver classResolver)
Sets class resolver |
void |
setInitialParameters(Map<String,String> parameters)
Sets initial parameters |
void |
setSessionManager(HTTPSessionManager sessionManager)
Sets session manager |
void |
setWebActivator(WebActivator webActivator)
Sets web activator. |
void |
setWebContext(WebContext webContext)
Sets web context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAPESTRY_SUFFIX
public static final String TAPESTRY_DEFAULT_APPLICATION_NAME
protected final org.slf4j.Logger logger
protected org.apache.hivemind.ClassResolver classResolver
protected org.apache.hivemind.Registry registry
protected WebRequestServicer webRequestServicer
protected WebActivator webActivator
protected WebContext webContext
protected HTTPSessionManager sessionManager
protected String applicationSpecificationResourceName
protected Map<String,String> initialParameters
Constructor Detail |
---|
public TapestryConnectionHandler()
Method Detail |
---|
public void handleConnection(Connection connection)
DanubeRequest
and DanubeResponse
and invokes servicer's service method.
handleConnection
in interface ConnectionHandler
connection
- connectionpublic void init() throws Exception
Exception
protected WebContext obtainWebContext()
WebContext
.
DanubeContext
protected org.apache.hivemind.ErrorHandler constructErrorHandler()
StrictErrorHandler
protected org.apache.hivemind.Resource obtainApplicationResource()
public HTTPSessionManager getSessionManager()
createSessionManager()
method is called.
public void setSessionManager(HTTPSessionManager sessionManager)
sessionManager
- the sessionManager to setprotected HTTPSessionManager createSessionManager()
SimpleSessionManager
public org.apache.hivemind.ClassResolver getClassResolver()
createClassResolver()
method
is called
public void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
classResolver
- class resolverprotected org.apache.hivemind.ClassResolver createClassResolver()
DefaultClassResolver
.
public Map<String,String> getInitialParameters()
public void setInitialParameters(Map<String,String> parameters)
parameters
- initial parameterspublic String getApplicationSpecificationResourceName()
public void setApplicationSpecificationResourceName(String applicationSpecificationResourceName)
applicationSpecificationResourceName
- name of application specification resourcepublic WebActivator getWebActivator()
DanubeActivator
will be
instantiated.
public void setWebActivator(WebActivator webActivator)
webActivator
- web activatorpublic WebContext getWebContext()
DanubeContext
will be instantiated.
public void setWebContext(WebContext webContext)
webContext
- web context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |