seda.sandStorm.lib.http
Class httpBadRequestResponse

java.lang.Object
  extended by seda.sandStorm.lib.http.httpResponse
      extended by seda.sandStorm.lib.http.httpBadRequestResponse
All Implemented Interfaces:
QueueElementIF, httpConst

public class httpBadRequestResponse
extends httpResponse
implements httpConst, QueueElementIF

An httpResponse corresponding to a '404 Bad Request' (i.e. an unknown request type). Use httpNotFoundResponse for a '404 Not Found'.

Author:
Matt Welsh
See Also:
httpNotFoundResponse

Field Summary
 
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
 
Fields inherited from interface seda.sandStorm.lib.http.httpConst
CRLF, DEFAULT_HTTP_PORT, HTTP_VERSION, WRITE_CLOG_THRESHOLD
 
Constructor Summary
httpBadRequestResponse(httpRequest request, java.lang.String reason)
           
 
Method Summary
protected  java.lang.String getEntityHeader()
          Return the entity header as a String.
 
Methods inherited from class seda.sandStorm.lib.http.httpResponse
getBuffers, getDefaultHeader, getHeader, getPayload, setDefaultHeader, setPayload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

httpBadRequestResponse

public httpBadRequestResponse(httpRequest request,
                              java.lang.String reason)
Method Detail

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