public class JsonResult
extends org.apache.struts2.dispatcher.StrutsResultSupport
Constructor and Description |
---|
JsonResult()
Default constructor
|
JsonResult(String location) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(String finalLocation,
com.opensymphony.xwork2.ActionInvocation invocation) |
String |
getCharSet()
Set the character set
|
void |
setAllowCrossSiteScripting(boolean allowCrossSiteScripting)
Flag to disable cross site scripting headers (default = false).
|
void |
setCharSet(String charSet)
Set the character set
|
void |
setCommentOutput(boolean commentOutput)
Set true, if the result json should be in comments \/* JSON *\/
false, other wise
|
void |
setJsonResponse(String response)
Sets the response for this result.
|
public JsonResult()
public JsonResult(String location)
location
- protected void doExecute(String finalLocation, com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
doExecute
in class org.apache.struts2.dispatcher.StrutsResultSupport
Exception
public void setJsonResponse(String response)
public void setAllowCrossSiteScripting(boolean allowCrossSiteScripting)
allowCrossSiteScripting
- true allows it, false disables itpublic String getCharSet()
public void setCharSet(String charSet)
charSet
- The character setpublic void setCommentOutput(boolean commentOutput)
commentOutput
- true, if the output should be commentedCopyright © 2013 Christian Grobmeier Software. All Rights Reserved.