com.atlassian.xwork.results
Class HttpErrorResult

java.lang.Object
  extended by com.atlassian.xwork.results.HttpErrorResult
All Implemented Interfaces:
com.opensymphony.xwork.Result, Serializable

public class HttpErrorResult
extends Object
implements com.opensymphony.xwork.Result

XWork result that sends an HTTP error, as configured. Example usage:

<result name="denied" type="httperror">
     <param name="errorCode">403</param>
     <param name="errorMessage">You are not permitted to view this resource</param>
 </result>

Since:
1.6
See Also:
Serialized Form

Constructor Summary
HttpErrorResult()
           
 
Method Summary
 void execute(com.opensymphony.xwork.ActionInvocation invocation)
           
 void setErrorCode(int errorCode)
           
 void setErrorMessage(String errorMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpErrorResult

public HttpErrorResult()
Method Detail

execute

public void execute(com.opensymphony.xwork.ActionInvocation invocation)
             throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Result
Throws:
Exception

setErrorCode

public void setErrorCode(int errorCode)

setErrorMessage

public void setErrorMessage(String errorMessage)


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.