public class ThrottleResponse extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
delay |
protected String |
errorMessage |
protected int |
responseCode |
protected Map<String,String> |
responseHeaders |
Constructor and Description |
---|
ThrottleResponse() |
ThrottleResponse(int responceCode) |
ThrottleResponse(int responceCode,
long delay) |
Modifier and Type | Method and Description |
---|---|
ThrottleResponse |
addResponseHeader(String header,
String value)
Add headers to the response.
|
long |
getDelay()
Delay processing for specified milliseconds.
|
String |
getErrorMessage() |
int |
getResponseCode() |
Map<String,String> |
getResponseHeaders() |
ThrottleResponse |
setDelay(long d) |
ThrottleResponse |
setResponseCode(int rc) |
ThrottleResponse |
setResponseCode(int rc,
String msg) |
protected long delay
protected int responseCode
protected String errorMessage
public ThrottleResponse()
public ThrottleResponse(int responceCode)
public ThrottleResponse(int responceCode, long delay)
public ThrottleResponse addResponseHeader(String header, String value)
public int getResponseCode()
public String getErrorMessage()
public ThrottleResponse setResponseCode(int rc)
public ThrottleResponse setResponseCode(int rc, String msg)
public long getDelay()
public ThrottleResponse setDelay(long d)
Apache CXF