| 1 |
|
package com.atlassian.xwork.results; |
| 2 |
|
|
| 3 |
|
import com.opensymphony.xwork.Result; |
| 4 |
|
import com.opensymphony.xwork.ActionInvocation; |
| 5 |
|
import com.opensymphony.webwork.ServletActionContext; |
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
@since |
| 16 |
|
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 3 |
Complexity Density: 1 |
|
| 17 |
|
public class HttpErrorResult implements Result |
| 18 |
|
{ |
| 19 |
|
private int errorCode; |
| 20 |
|
private String errorMessage; |
| 21 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 22 |
0
|
public void execute(ActionInvocation invocation) throws Exception... |
| 23 |
|
{ |
| 24 |
0
|
ServletActionContext.getResponse().sendError(errorCode, errorMessage); |
| 25 |
|
} |
| 26 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 27 |
0
|
public void setErrorCode(int errorCode)... |
| 28 |
|
{ |
| 29 |
0
|
this.errorCode = errorCode; |
| 30 |
|
} |
| 31 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 32 |
0
|
public void setErrorMessage(String errorMessage)... |
| 33 |
|
{ |
| 34 |
0
|
this.errorMessage = errorMessage; |
| 35 |
|
} |
| 36 |
|
} |