com.atlassian.jira.jelly
Class WebWorkAdaptor
java.lang.Object
com.atlassian.jira.jelly.WebWorkAdaptor
public class WebWorkAdaptor
- extends Object
Method Summary |
boolean |
authenticateUser(ActionTagSupport tag,
String username,
String password,
org.apache.commons.jelly.XMLOutput output)
|
JellyHttpRequest |
getJellyHttpRequest()
|
JellyHttpResponse |
getJellyHttpResponse()
|
HashMap |
getJellyHttpSession()
|
webwork.dispatcher.ActionResult |
getResult()
|
boolean |
mapJellyTagToAction(ActionTagSupport tag,
org.apache.commons.jelly.XMLOutput output)
Takes a Jelly Tag, maps it to a Webwork Action and executes the Webwork Action. |
protected boolean |
processResult(ActionTagSupport tag,
org.apache.commons.jelly.XMLOutput output)
|
protected boolean |
processWebworkException(String actionName,
Exception e,
org.apache.commons.jelly.XMLOutput output,
ActionTagSupport tag)
|
void |
setResult(webwork.dispatcher.ActionResult actionResult)
|
static void |
writeErrorToXmlOutput(org.apache.commons.jelly.XMLOutput output,
CharSequence errorMessage,
String actionName,
org.apache.commons.jelly.TagSupport 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 |
WebWorkAdaptor
public WebWorkAdaptor()
mapJellyTagToAction
public boolean mapJellyTagToAction(ActionTagSupport tag,
org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- Takes a Jelly Tag, maps it to a Webwork Action and executes the Webwork Action.
- Parameters:
tag
- The Jelly Tagoutput
- The XMLOutput writer (the Jelly XMLOutput Stream - where errors and output goes)
- Throws:
org.apache.commons.jelly.JellyTagException
processResult
protected boolean processResult(ActionTagSupport tag,
org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.JellyTagException
processWebworkException
protected boolean processWebworkException(String actionName,
Exception e,
org.apache.commons.jelly.XMLOutput output,
ActionTagSupport tag)
throws org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.JellyTagException
writeErrorToXmlOutput
public static void writeErrorToXmlOutput(org.apache.commons.jelly.XMLOutput output,
CharSequence errorMessage,
String actionName,
org.apache.commons.jelly.TagSupport badTag)
throws SAXException
- Formats the error output as one element per error.
- Parameters:
output
- The XML Output stream.errorMessage
- The Stringbuffer containing the error string.actionName
- the name of the action.badTag
- the tag that failed.
- Throws:
SAXException
- if there's a problem creating XML on output.
authenticateUser
public boolean authenticateUser(ActionTagSupport tag,
String username,
String password,
org.apache.commons.jelly.XMLOutput output)
throws Exception
- Throws:
Exception
getJellyHttpSession
public HashMap getJellyHttpSession()
getJellyHttpResponse
public JellyHttpResponse getJellyHttpResponse()
getJellyHttpRequest
public JellyHttpRequest getJellyHttpRequest()
setResult
public void setResult(webwork.dispatcher.ActionResult actionResult)
getResult
public webwork.dispatcher.ActionResult getResult()
Copyright © 2002-2014 Atlassian. All Rights Reserved.