com.atlassian.jira.jelly
Class WebWorkAdaptor

java.lang.Object
  extended bycom.atlassian.jira.jelly.WebWorkAdaptor

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()
           
 boolean mapJellyTagToAction(ActionTagSupport tag, XMLOutput output)
          Takes a Jelly Tag, maps it to a Webwork Action and executes the Webwork Action.
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

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()