net.ontopia.topicmaps.webed.impl.basic
Class ActionResponse

java.lang.Object
  extended by net.ontopia.topicmaps.webed.impl.basic.ActionResponse
All Implemented Interfaces:
ActionResponseIF

public class ActionResponse
extends java.lang.Object
implements ActionResponseIF

INTERNAL: Default implementation of an action response.


Field Summary
protected  java.lang.String forwardurl
           
protected  java.util.Map params
           
protected  javax.servlet.http.HttpServletRequest request
           
protected  javax.servlet.http.HttpServletResponse response
           
 
Constructor Summary
ActionResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 void addMessage(java.lang.String message)
           
 void addParameter(java.lang.String key, java.lang.String value)
          PUBLIC: Sets a parameter value in the forward request.
 java.lang.String getForward()
          PUBLIC: Returns the forward URL.
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
           
 javax.servlet.http.HttpServletResponse getHttpServletResponse()
           
 java.lang.String getParameter(java.lang.String key)
          PUBLIC: Gets the value of the named request parameter.
 java.util.Map getParameters()
          PUBLIC: Gets the parameter map which contains (key, value) pairs of String objects representing request parameters that should be included in the forward request.
 javax.servlet.ServletContext getServletContext()
           
 void setForward(java.lang.String relativeUrl)
          PUBLIC: Tells the editor framework which page to go to after form processing is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected java.util.Map params

forwardurl

protected java.lang.String forwardurl

request

protected javax.servlet.http.HttpServletRequest request

response

protected javax.servlet.http.HttpServletResponse response
Constructor Detail

ActionResponse

public ActionResponse(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
Method Detail

addParameter

public void addParameter(java.lang.String key,
                         java.lang.String value)
Description copied from interface: ActionResponseIF
PUBLIC: Sets a parameter value in the forward request.

Specified by:
addParameter in interface ActionResponseIF

getParameters

public java.util.Map getParameters()
Description copied from interface: ActionResponseIF
PUBLIC: Gets the parameter map which contains (key, value) pairs of String objects representing request parameters that should be included in the forward request.

Specified by:
getParameters in interface ActionResponseIF

getParameter

public java.lang.String getParameter(java.lang.String key)
Description copied from interface: ActionResponseIF
PUBLIC: Gets the value of the named request parameter.

Specified by:
getParameter in interface ActionResponseIF

addMessage

public void addMessage(java.lang.String message)

setForward

public void setForward(java.lang.String relativeUrl)
Description copied from interface: ActionResponseIF
PUBLIC: Tells the editor framework which page to go to after form processing is complete. The URL set here is relative to the root of the web application, and will override URLs set by earlier actions as well as the forwarding rules in the actions file.

Specified by:
setForward in interface ActionResponseIF

getForward

public java.lang.String getForward()
Description copied from interface: ActionResponseIF
PUBLIC: Returns the forward URL.

Specified by:
getForward in interface ActionResponseIF

getServletContext

public javax.servlet.ServletContext getServletContext()

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse()


Copyright © 2000-2012 Ontopia.