|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.proxy.StandardResponseHeaders
public class StandardResponseHeaders
A class that can create standard response headers.
Constructor Summary | |
---|---|
StandardResponseHeaders(Connection con)
|
Method Summary | |
---|---|
HTTPHeader |
get200()
Get a 200 Ok header |
HTTPHeader |
get206(java.lang.String ifRange,
HTTPHeader header)
|
HTTPHeader |
get304(HTTPHeader oldresp)
Get a 304 Not Modified header for the given old header |
HTTPHeader |
get400(java.lang.Exception exception)
Get a 400 Bad Request header for the given exception. |
HTTPHeader |
get403()
Get a 403 Forbidden header. |
HTTPHeader |
get407(java.lang.String realm,
java.net.URL url)
Get a 407 Proxy Authentication Required for the given realm and url. |
HTTPHeader |
get412()
Get a 412 Precondition Failed header. |
HTTPHeader |
get416(java.lang.Throwable exception)
Get a Requested Range Not Satisfiable for the given exception. |
HTTPHeader |
get417(java.lang.String expectation)
Get a 417 Expectation Failed header. |
HTTPHeader |
get500(java.lang.Throwable exception)
Get a 500 Internal Server Error header for the given exception. |
HTTPHeader |
get504(java.lang.Throwable exception,
java.lang.String requestLine)
Get a 504 Gateway Timeout for the given exception. |
HTTPHeader |
getHeader()
Get a new HTTPHeader. |
HTTPHeader |
getHeader(java.lang.String statusLine)
Get a new HTTPHeader initialized with some data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardResponseHeaders(Connection con)
Method Detail |
---|
public HTTPHeader getHeader()
public HTTPHeader getHeader(java.lang.String statusLine)
statusLine
- the statusline of the response.
public HTTPHeader get200()
public HTTPHeader get206(java.lang.String ifRange, HTTPHeader header)
public HTTPHeader get304(HTTPHeader oldresp)
oldresp
- the cached header.
public HTTPHeader get400(java.lang.Exception exception)
exception
- the Exception handled.
public HTTPHeader get403()
public HTTPHeader get407(java.lang.String realm, java.net.URL url)
realm
- the realm that requires auth.url
- the URL of the request made.
public HTTPHeader get412()
public HTTPHeader get416(java.lang.Throwable exception)
exception
- the Exception made.
public HTTPHeader get417(java.lang.String expectation)
expectation
- the expectation that failed.
public HTTPHeader get500(java.lang.Throwable exception)
exception
- the Exception made.
public HTTPHeader get504(java.lang.Throwable exception, java.lang.String requestLine)
exception
- the Exception made.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |