|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpGenerator
An interface describing the methods for http header generation.
Method Summary | |
---|---|
HttpHeader |
get200()
Get a 200 Ok header |
HttpHeader |
get206(String ifRange,
HttpHeader header)
Get a 206 Partial Content header. |
HttpHeader |
get304(HttpHeader oldresp)
Get a 304 Not Modified header for the given old header |
HttpHeader |
get400(Exception exception)
Get a 400 Bad Request header for the given exception. |
HttpHeader |
get401(URL url,
String realm)
Get a 401 Authentication Required for the given realm and url. |
HttpHeader |
get403()
Get a 403 Forbidden header. |
HttpHeader |
get404(String file)
Get a 404 File not found header. |
HttpHeader |
get407(URL url,
String realm)
Get a 407 Proxy Authentication Required for the given realm and url. |
HttpHeader |
get412()
Get a 412 Precondition Failed header. |
HttpHeader |
get414()
Get a 414 Request-URI Too Long header. |
HttpHeader |
get416(Throwable exception)
Get a Requested Range Not Satisfiable for the given exception. |
HttpHeader |
get417(String expectation)
Get a 417 Expectation Failed header. |
HttpHeader |
get500(String requestURL,
Throwable exception)
Get a 500 Internal Server Error header for the given exception. |
HttpHeader |
get504(String requestURL,
Throwable exception)
Get a 504 Gateway Timeout for the given exception. |
HttpHeader |
getHeader()
Get a new HttpHeader. |
Method Detail |
---|
HttpHeader getHeader()
HttpHeader get200()
HttpHeader get206(String ifRange, HttpHeader header)
ifRange
- if the request is a range request.header
- the current HttpHeader.HttpHeader get304(HttpHeader oldresp)
oldresp
- the cached header.
HttpHeader get400(Exception exception)
exception
- the Exception handled.
HttpHeader get401(URL url, String realm)
url
- the URL of the request made.realm
- the realm that requires auth.
HttpHeader get403()
HttpHeader get404(String file)
HttpHeader get407(URL url, String realm)
realm
- the realm that requires auth.url
- the URL of the request made.
HttpHeader get412()
HttpHeader get414()
HttpHeader get416(Throwable exception)
exception
- the Exception made.
HttpHeader get417(String expectation)
expectation
- the expectation that failed.
HttpHeader get500(String requestURL, Throwable exception)
exception
- the Exception made.
HttpHeader get504(String requestURL, Throwable exception)
exception
- the Exception made.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |