org.hecl.http
Interface HttpRequestClass


public interface HttpRequestClass


Method Summary
 byte[] executeQuery()
          Executes a GET query
 byte[] executeQuery(byte[] data)
          Executes a POST query
 java.lang.String getErrorMessage()
           
 void setQueryType(java.lang.String type)
          Sets query type for POST requests
 boolean setUrl(java.lang.String url)
          Sets new URL of the request
 

Method Detail

setQueryType

void setQueryType(java.lang.String type)
Sets query type for POST requests

Parameters:
type - new MIME type

setUrl

boolean setUrl(java.lang.String url)
Sets new URL of the request

Parameters:
url - new URL
Returns:
whether setting the url has succeeded

executeQuery

byte[] executeQuery()
Executes a GET query

Returns:
HTTP body as byte array

executeQuery

byte[] executeQuery(byte[] data)
Executes a POST query

Parameters:
data - POST data
Returns:
HTTP body as byte array

getErrorMessage

java.lang.String getErrorMessage()