public class HttpResponse
extends java.lang.Object
implements java.io.Serializable
IHttpResponseListener.put(String[],LexCommand,HttpRequest,HttpResponse).| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the specified response header.
|
java.util.Enumeration |
getHeaderNames()
Returns an enumeration of all the header names this response contains.
|
java.lang.String |
getReasonLine()
Returns the reason line associated with the status code.
|
int |
getStatusCode()
Returns the status code for the associated request.
|
java.lang.String |
getTrailer(java.lang.String name)
Returns the value of the specified response trailer.
|
java.util.Enumeration |
getTrailerNames()
Returns an enumeration of all the trailer names this response contains.
|
java.lang.String |
getVersion()
Returns the HTTP version used for this response
|
public java.lang.String getVersion()
public int getStatusCode()
public java.lang.String getReasonLine()
public java.util.Enumeration getHeaderNames()
public java.lang.String getHeader(java.lang.String name)
name - a (case-insensitive) String specifying the header namepublic java.util.Enumeration getTrailerNames()
public java.lang.String getTrailer(java.lang.String name)
name - a (case-insensitive) String specifying the trailer name