Interface Request


public interface Request
Interface to prepare and execute an HTTP request.
  • Method Details

    • enableHTTP10

      void enableHTTP10()
    • setHeader

      void setHeader(String name, String value)
    • addHeader

      void addHeader(String name, String value)
    • getRequestHeaders

      org.apache.axiom.mime.Header[] getRequestHeaders()
    • enableAuthentication

      void enableAuthentication(HTTPAuthenticator authenticator)
    • setConnectionTimeout

      void setConnectionTimeout(int timeout)
    • setResponseTimeout

      void setResponseTimeout(int timeout)
    • execute

      void execute() throws IOException
      Throws:
      IOException
    • getStatusCode

      int getStatusCode()
    • getStatusText

      String getStatusText()
    • getResponseHeader

      String getResponseHeader(String name)
    • getResponseHeaders

      org.apache.axiom.mime.Header[] getResponseHeaders()
    • getCookies

      Map<String,String> getCookies()
    • getResponseContent

      InputStream getResponseContent() throws IOException
      Throws:
      IOException
    • releaseConnection

      void releaseConnection()