com.atlassian.jira.jelly
Class WebWorkAdaptor

java.lang.Object
  extended bycom.atlassian.jira.jelly.WebWorkAdaptor
Direct Known Subclasses:
WebWorkBackendAdaptor

public class WebWorkAdaptor
extends java.lang.Object


Constructor Summary
WebWorkAdaptor()
           
 
Method Summary
 boolean authenticateUser(ActionTagSupport tag, java.lang.String username, java.lang.String password, XMLOutput output)
           
 JellyHttpRequest getJellyHttpRequest()
           
 JellyHttpResponse getJellyHttpResponse()
           
 java.util.HashMap getJellyHttpSession()
           
 ActionResult getResult()
           
 boolean mapJellyTagToAction(ActionTagSupport tag, XMLOutput output)
          Takes a Jelly Tag, maps it to a Webwork Action and executes the Webwork Action.
protected  boolean processResult(ActionTagSupport tag, XMLOutput output)
           
protected  boolean processWebworkException(java.lang.String actionName, java.lang.Exception e, XMLOutput output, ActionTagSupport tag)
           
 void setResult(ActionResult actionResult)
           
static void writeErrorToXmlOutput(XMLOutput output, java.lang.StringBuffer buff, java.lang.String actionName, ActionTagSupport badTag)
          Formats the error output as one element per error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebWorkAdaptor

public WebWorkAdaptor()
Method Detail

mapJellyTagToAction

public boolean mapJellyTagToAction(ActionTagSupport tag,
                                   XMLOutput output)
                            throws JellyTagException
Takes a Jelly Tag, maps it to a Webwork Action and executes the Webwork Action.

Parameters:
tag - The Jelly Tag
output - The XMLOutput writer (the Jelly XMLOutput Stream - where errors and output goes)
Throws:
JellyTagException

processResult

protected boolean processResult(ActionTagSupport tag,
                                XMLOutput output)
                         throws JellyTagException
Throws:
JellyTagException

processWebworkException

protected boolean processWebworkException(java.lang.String actionName,
                                          java.lang.Exception e,
                                          XMLOutput output,
                                          ActionTagSupport tag)
                                   throws JellyTagException
Throws:
JellyTagException

writeErrorToXmlOutput

public static void writeErrorToXmlOutput(XMLOutput output,
                                         java.lang.StringBuffer buff,
                                         java.lang.String actionName,
                                         ActionTagSupport badTag)
                                  throws org.xml.sax.SAXException
Formats the error output as one element per error.

Parameters:
output - The XML Output stream
buff - The Stringbuffer containing the error string
Throws:
org.xml.sax.SAXException

authenticateUser

public boolean authenticateUser(ActionTagSupport tag,
                                java.lang.String username,
                                java.lang.String password,
                                XMLOutput output)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getJellyHttpSession

public java.util.HashMap getJellyHttpSession()

getJellyHttpResponse

public JellyHttpResponse getJellyHttpResponse()

getJellyHttpRequest

public JellyHttpRequest getJellyHttpRequest()

setResult

public void setResult(ActionResult actionResult)

getResult

public ActionResult getResult()