it.eng.spago.dispatching.action
Class AbstractHttpAction

java.lang.Object
  extended byDefaultRequestContext
      extended byit.eng.spago.dispatching.service.DefaultHttpRequestContext
          extended byit.eng.spago.dispatching.action.AbstractHttpAction
All Implemented Interfaces:
HttpRequestContextIFace

public abstract class AbstractHttpAction
extends DefaultHttpRequestContext

La classe AbstractHttpAction è la superclasse di quelle actions che necessitano di operare esclusivamente nel canale HTTP e hanno necessit? di accedere direttamente agli oggetti HttpServletRequest, HttpServletResponse,ServletConfig (i.e. per ricevere un file in upload).

Questa classe mette a disposizione i metodi per recuperare le instanze delle seguenti classi :

  RequestContainer :Il contenitore di oggetti legati ai parametri della richiesta di un servizio.
  ResponseContainer :Il contenitore di oggetti legati alla riposta ad una richiesta di un servizio.
  HttpServletRequest :L'oggetto che contiene la request gestita dal servlet container
  HttpServletResponse :L'oggetto che contiene la response gestita dal servlet container
  EMFErrorHandler :Il gestore degli errori.
  
Nella configurazione XML dell'action e' possibile scrivere uno stream XML(Config) che verr? passato all'istanza dell'action dopo la sua creazione.

See Also:
it.eng.spago.base.RequestContainer, it.eng.spago.base.ResponseContainer, it.eng.spago.error.EMFErrorHandler, Serialized Form

Constructor Summary
AbstractHttpAction()
           
 
Method Summary
 java.lang.String getActionName()
           
 SourceBean getConfig()
           
 void init(SourceBean config)
           
 void setActionName(java.lang.String action)
           
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultHttpRequestContext
freezeHttpResponse, getHttpRequest, getHttpResponse, getServletConfig, isHttpResponseFreezed, setRequestContext, unfreezeHttpResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpAction

public AbstractHttpAction()
Method Detail

init

public void init(SourceBean config)

getConfig

public SourceBean getConfig()

getActionName

public java.lang.String getActionName()

setActionName

public void setActionName(java.lang.String action)