seda.sandStorm.lib.http
Class httpRedirectResponse
java.lang.Object
seda.sandStorm.lib.http.httpResponse
seda.sandStorm.lib.http.httpRedirectResponse
- All Implemented Interfaces:
- QueueElementIF, httpConst
public class httpRedirectResponse
- extends httpResponse
- implements httpConst, QueueElementIF
An httpResponse corresponding to a '301 Moved Permanently' response.
Field Summary |
private static boolean |
DEBUG
|
private java.lang.String |
newURL
|
private java.lang.String |
oldURL
|
Fields inherited from class seda.sandStorm.lib.http.httpResponse |
code, combinedData, contentLength, contentType, DEFAULT_MIME_TYPE, defaultHeader, header, payload, RESPONSE_BAD_REQUEST, RESPONSE_INTERNAL_SERVER_ERROR, RESPONSE_NOT_FOUND, RESPONSE_OK, RESPONSE_REDIRECT, RESPONSE_SERVICE_UNAVAILABLE |
Constructor Summary |
httpRedirectResponse(httpRequest request,
java.lang.String newURL)
Create a redirect response corresponding to the given request with
the given new URL. |
Method Summary |
protected java.lang.String |
getEntityHeader()
Return the entity header as a String. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
oldURL
private java.lang.String oldURL
newURL
private java.lang.String newURL
httpRedirectResponse
public httpRedirectResponse(httpRequest request,
java.lang.String newURL)
- Create a redirect response corresponding to the given request with
the given new URL.
getEntityHeader
protected java.lang.String getEntityHeader()
- Description copied from class:
httpResponse
- Return the entity header as a String. Must be implemented by
subclasses of httpResponse.
- Specified by:
getEntityHeader
in class httpResponse
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object