org.abstracthorizon.danube.webflow
Class DanubeExternalContext

java.lang.Object
  extended by org.abstracthorizon.danube.webflow.DanubeExternalContext
All Implemented Interfaces:
org.springframework.webflow.context.ExternalContext

public class DanubeExternalContext
extends Object
implements org.springframework.webflow.context.ExternalContext

Danube Spring WebFLow's external context adapter.

Author:
Daniel Sendula

Nested Class Summary
static class DanubeExternalContext.EnumerationIteratorAdapter<T>
          Enumeration adapter over itereator
 class DanubeExternalContext.SessionMap
          Session map adapter
 
Field Summary
protected  HTTPConnection connection
          Connection reference
protected  DanubeFlowController controller
          Reference to the controller
 
Constructor Summary
DanubeExternalContext(DanubeFlowController controller, HTTPConnection connection)
          Constructor
 
Method Summary
 org.springframework.webflow.core.collection.SharedAttributeMap getApplicationMap()
           
 String getContextPath()
          Returns connection's context path
 String getDispatcherPath()
          Returns connection's component path
 org.springframework.webflow.core.collection.SharedAttributeMap getGlobalSessionMap()
           
 org.springframework.webflow.core.collection.MutableAttributeMap getRequestMap()
           
 org.springframework.webflow.core.collection.ParameterMap getRequestParameterMap()
          Returns request parameter map adapter from connection's request paramaters
 String getRequestPathInfo()
          Returns connection's component resource path
 org.springframework.webflow.core.collection.SharedAttributeMap getSessionMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected HTTPConnection connection
Connection reference


controller

protected DanubeFlowController controller
Reference to the controller

Constructor Detail

DanubeExternalContext

public DanubeExternalContext(DanubeFlowController controller,
                             HTTPConnection connection)
Constructor

Parameters:
controller - reference to the controller
connection - reference to the current connection
Method Detail

getContextPath

public String getContextPath()
Returns connection's context path

Specified by:
getContextPath in interface org.springframework.webflow.context.ExternalContext
Returns:
connection's context path

getDispatcherPath

public String getDispatcherPath()
Returns connection's component path

Specified by:
getDispatcherPath in interface org.springframework.webflow.context.ExternalContext
Returns:
connection's component path

getRequestPathInfo

public String getRequestPathInfo()
Returns connection's component resource path

Specified by:
getRequestPathInfo in interface org.springframework.webflow.context.ExternalContext
Returns:
connection's component resource path

getRequestParameterMap

public org.springframework.webflow.core.collection.ParameterMap getRequestParameterMap()
Returns request parameter map adapter from connection's request paramaters

Specified by:
getRequestParameterMap in interface org.springframework.webflow.context.ExternalContext
Returns:
request parameter map adapter

getApplicationMap

public org.springframework.webflow.core.collection.SharedAttributeMap getApplicationMap()
Specified by:
getApplicationMap in interface org.springframework.webflow.context.ExternalContext

getGlobalSessionMap

public org.springframework.webflow.core.collection.SharedAttributeMap getGlobalSessionMap()
Specified by:
getGlobalSessionMap in interface org.springframework.webflow.context.ExternalContext

getRequestMap

public org.springframework.webflow.core.collection.MutableAttributeMap getRequestMap()
Specified by:
getRequestMap in interface org.springframework.webflow.context.ExternalContext

getSessionMap

public org.springframework.webflow.core.collection.SharedAttributeMap getSessionMap()
Specified by:
getSessionMap in interface org.springframework.webflow.context.ExternalContext


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