com.flat502.rox.http
Class HttpResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.flat502.rox.http.HttpMessageException
              extended by com.flat502.rox.http.HttpResponseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MethodNotAllowedResponseException

public class HttpResponseException
extends HttpMessageException

See Also:
Serialized Form

Constructor Summary
HttpResponseException(int statusCode, java.lang.String reasonPhrase)
           
HttpResponseException(int statusCode, java.lang.String reasonPhrase, HttpRequestBuffer req)
           
HttpResponseException(int statusCode, java.lang.String reasonPhrase, HttpRequestBuffer req, java.util.Map headers)
           
HttpResponseException(int statusCode, java.lang.String reasonPhrase, HttpRequestBuffer req, java.lang.Throwable e)
           
HttpResponseException(int statusCode, java.lang.String reasonPhrase, java.lang.Throwable e)
           
 
Method Summary
 java.lang.String getReasonPhrase()
           
 int getStatusCode()
           
 HttpResponse toHttpResponse(java.lang.String httpVersion)
           
 
Methods inherited from class com.flat502.rox.http.HttpMessageException
getMsg
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpResponseException

public HttpResponseException(int statusCode,
                             java.lang.String reasonPhrase)

HttpResponseException

public HttpResponseException(int statusCode,
                             java.lang.String reasonPhrase,
                             HttpRequestBuffer req)

HttpResponseException

public HttpResponseException(int statusCode,
                             java.lang.String reasonPhrase,
                             HttpRequestBuffer req,
                             java.util.Map headers)

HttpResponseException

public HttpResponseException(int statusCode,
                             java.lang.String reasonPhrase,
                             java.lang.Throwable e)

HttpResponseException

public HttpResponseException(int statusCode,
                             java.lang.String reasonPhrase,
                             HttpRequestBuffer req,
                             java.lang.Throwable e)
Method Detail

getStatusCode

public int getStatusCode()

getReasonPhrase

public java.lang.String getReasonPhrase()

toHttpResponse

public HttpResponse toHttpResponse(java.lang.String httpVersion)