|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.http.ResponseInfo
public class ResponseInfo
Contains basic information about an HTTP response.
Constructor Summary | |
---|---|
ResponseInfo()
Default constructor. |
Method Summary | |
---|---|
long |
getBytesRead()
Gets the actual number of bytes read from the HTTP response body. |
long |
getCharactersRead()
Gets the actual number of characters read from the HTTP response body. |
String |
getContentEncoding()
Gets the character encoding associated with the HTTP response body. |
long |
getContentLength()
Gets the declared length associated with the HTTP response body. |
String |
getContentType()
Gets the content type (i.e. |
String |
getDefaultEncoding()
Gets the default character encoding for an HTTP response. |
int |
getResponseCode()
Gets the code associated with the HTTP response. |
String |
getResponseMessage()
Gets the status message (or "reason phrase") associated with the HTTP response. |
void |
reset()
Resets response information. |
void |
setBytesRead(long length)
Sets the actual number of bytes read from the HTTP response body. |
void |
setCharactersRead(long length)
Sets the actual number of characters read from the HTTP response body. |
void |
setContentEncoding(String encoding)
Sets the character encoding associated with the HTTP response body. |
void |
setContentLength(long length)
Sets the declared length associated with the HTTP response body. |
void |
setContentType(String contentType)
Sets the content type (i.e. |
void |
setDefaultEncoding(String encoding)
Sets the default character encoding for an HTTP response. |
void |
setResponseCode(int code)
Sets the code associated with the HTTP response. |
void |
setResponseMessage(String message)
Sets the status message (or "reason phrase") associated with the HTTP response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseInfo()
Method Detail |
---|
public long getBytesRead()
public void setBytesRead(long length)
length
- the number of bytes read (-1 if unknown)public long getCharactersRead()
public void setCharactersRead(long length)
length
- the number of characters read (-1 if unknown)public String getContentEncoding()
public void setContentEncoding(String encoding)
encoding
- the encoding of the response body (if known)public long getContentLength()
public void setContentLength(long length)
length
- the declared length of the response body (-1 if unknown)public String getContentType()
public void setContentType(String contentType)
contentType
- the content type of the response body (if known)public String getDefaultEncoding()
public void setDefaultEncoding(String encoding)
encoding
- the default encoding for a response bodypublic int getResponseCode()
public void setResponseCode(int code)
code
- the HTTP response codepublic String getResponseMessage()
public void setResponseMessage(String message)
message
- the HTTP response messagepublic void reset()
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |