mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Reverted setters to not return self, ognl won't recognize them
WW-1463 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@462586 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -105,9 +105,8 @@ public class HttpHeaderResult implements Result {
|
||||
* @param parse <tt>true</tt> if HTTP header values should be evaluated agains the ValueStack, <tt>false</tt>
|
||||
* otherwise.
|
||||
*/
|
||||
public HttpHeaderResult setParse(boolean parse) {
|
||||
public void setParse(boolean parse) {
|
||||
this.parse = parse;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -116,9 +115,8 @@ public class HttpHeaderResult implements Result {
|
||||
* @param status the Http status code
|
||||
* @see javax.servlet.http.HttpServletResponse#setStatus(int)
|
||||
*/
|
||||
public HttpHeaderResult setStatus(int status) {
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -126,9 +124,8 @@ public class HttpHeaderResult implements Result {
|
||||
* @param name
|
||||
* @param value
|
||||
*/
|
||||
public HttpHeaderResult addHeader(String name, String value) {
|
||||
public void addHeader(String name, String value) {
|
||||
headers.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -101,9 +101,8 @@ public class PlainTextResult extends StrutsResultSupport {
|
||||
*
|
||||
* @param charSet The character set
|
||||
*/
|
||||
public PlainTextResult setCharSet(String charSet) {
|
||||
public void setCharSet(String charSet) {
|
||||
this.charSet = charSet;
|
||||
return this;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
||||
@@ -204,9 +204,8 @@ public class ServletActionRedirectResult extends ServletRedirectResult {
|
||||
*
|
||||
* @param actionName The name
|
||||
*/
|
||||
public ServletActionRedirectResult setActionName(String actionName) {
|
||||
public void setActionName(String actionName) {
|
||||
this.actionName = actionName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -214,9 +213,8 @@ public class ServletActionRedirectResult extends ServletRedirectResult {
|
||||
*
|
||||
* @param namespace The namespace
|
||||
*/
|
||||
public ServletActionRedirectResult setNamespace(String namespace) {
|
||||
public void setNamespace(String namespace) {
|
||||
this.namespace = namespace;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -224,9 +222,8 @@ public class ServletActionRedirectResult extends ServletRedirectResult {
|
||||
*
|
||||
* @param method The method
|
||||
*/
|
||||
public ServletActionRedirectResult setMethod(String method) {
|
||||
public void setMethod(String method) {
|
||||
this.method = method;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -94,9 +94,8 @@ public class ServletRedirectResult extends StrutsResultSupport {
|
||||
* @param prependServletContext <tt>true</tt> to prepend the location with the servlet context path,
|
||||
* <tt>false</tt> otherwise.
|
||||
*/
|
||||
public ServletRedirectResult setPrependServletContext(boolean prependServletContext) {
|
||||
public void setPrependServletContext(boolean prependServletContext) {
|
||||
this.prependServletContext = prependServletContext;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -104,9 +104,8 @@ public class StreamResult extends StrutsResultSupport {
|
||||
/**
|
||||
* @param bufferSize The bufferSize to set.
|
||||
*/
|
||||
public StreamResult setBufferSize(int bufferSize) {
|
||||
public void setBufferSize(int bufferSize) {
|
||||
this.bufferSize = bufferSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,9 +118,8 @@ public class StreamResult extends StrutsResultSupport {
|
||||
/**
|
||||
* @param contentType The contentType to set.
|
||||
*/
|
||||
public StreamResult setContentType(String contentType) {
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -134,9 +132,8 @@ public class StreamResult extends StrutsResultSupport {
|
||||
/**
|
||||
* @param contentLength The contentLength to set.
|
||||
*/
|
||||
public StreamResult setContentLength(String contentLength) {
|
||||
public void setContentLength(String contentLength) {
|
||||
this.contentLength = contentLength;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,9 +146,8 @@ public class StreamResult extends StrutsResultSupport {
|
||||
/**
|
||||
* @param contentDisposition the Content-disposition header value to use.
|
||||
*/
|
||||
public StreamResult setContentDisposition(String contentDisposition) {
|
||||
public void setContentDisposition(String contentDisposition) {
|
||||
this.contentDisposition = contentDisposition;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -164,9 +160,8 @@ public class StreamResult extends StrutsResultSupport {
|
||||
/**
|
||||
* @param inputName The inputName to set.
|
||||
*/
|
||||
public StreamResult setInputName(String inputName) {
|
||||
public void setInputName(String inputName) {
|
||||
this.inputName = inputName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -113,9 +113,8 @@ public class FreemarkerResult extends StrutsResultSupport {
|
||||
super(location);
|
||||
}
|
||||
|
||||
public FreemarkerResult setContentType(String aContentType) {
|
||||
public void setContentType(String aContentType) {
|
||||
pContentType = aContentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -73,9 +73,8 @@ public class PortletFreemarkerResult extends StrutsResultSupport {
|
||||
super(location);
|
||||
}
|
||||
|
||||
public PortletFreemarkerResult setContentType(String aContentType) {
|
||||
public void setContentType(String aContentType) {
|
||||
pContentType = aContentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -214,11 +214,10 @@ public class XSLTResult implements Result {
|
||||
setStylesheetLocation(location);
|
||||
}
|
||||
|
||||
public XSLTResult setStylesheetLocation(String location) {
|
||||
public void setStylesheetLocation(String location) {
|
||||
if (location == null)
|
||||
throw new IllegalArgumentException("Null location");
|
||||
this.stylesheetLocation = location;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getStylesheetLocation() {
|
||||
@@ -230,9 +229,8 @@ public class XSLTResult implements Result {
|
||||
*
|
||||
* @param parse
|
||||
*/
|
||||
public XSLTResult setParse(boolean parse) {
|
||||
public void setParse(boolean parse) {
|
||||
this.parse = parse;
|
||||
return this;
|
||||
}
|
||||
|
||||
public void execute(ActionInvocation invocation) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user