|
Sun Adapter for HTTP API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HTTPResult
This interface represents an HTTP application result.
| Method Summary | |
|---|---|
int |
countHeader()
Gets the header count. |
byte[] |
getBinaryResult()
Gets the binary result content. |
HTTPHeader |
getHeader(int i)
Gets the header at the specified index. |
int |
getResponseCode()
Returns the HTTP status code. |
java.lang.String |
getResponseMessage()
Returns the HTTP response message. |
java.lang.String |
getTextResult()
Gets the text result content |
boolean |
hasResult()
Checks whether the result content exists. |
boolean |
isTextResult()
Checks whether the result content is text or binary. |
| Method Detail |
|---|
int getResponseCode()
throws HTTPApplicationException
HTTPApplicationException - upon error.
java.lang.String getResponseMessage()
throws HTTPApplicationException
HTTPApplicationException - upon error.
boolean hasResult()
throws HTTPApplicationException
HTTPApplicationException - upon error.
boolean isTextResult()
throws HTTPApplicationException
HTTPApplicationException - upon error.
byte[] getBinaryResult()
throws HTTPApplicationException
HTTPApplicationException - upon error.
java.lang.String getTextResult()
throws HTTPApplicationException
HTTPApplicationException - upon error.
int countHeader()
throws HTTPApplicationException
HTTPApplicationException - upon error.
HTTPHeader getHeader(int i)
throws HTTPApplicationException
i - The header index.
HTTPApplicationException - upon error.
|
Sun Adapter for HTTP API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||