Interface GXHTTP<BODY,RESPONSE>

Type Parameters:
BODY - the type of the body request
RESPONSE - the type of the response
All Known Implementing Classes:
GXHTTPStreamRequest, GXHTTPStringRequest

public interface GXHTTP<BODY,RESPONSE>
HTTP methods for requests.
Author:
Manuele Simi (ISTI-CNR), Luca Frosini (ISTI-CNR)
  • Method Summary

    Modifier and Type
    Method
    Description
    Sends the CONNECT request to the web application with no body.
    Sends the DELETE request to the web application.
    get()
    Sends the GET request to the web application.
    Sends the HEAD request to the web application.
    Sends the OPTIONS request to the web application with no body.
    Sends the PATCH request to the web application with no body.
    patch(BODY body)
    Sends the PATCH request to the web application.
    Sends the POST request to the web application with no body.
    post(BODY body)
    Sends the POST request to the web application.
    Sends the PURGE request to the web application.
    put()
    Sends the PUT request to the web application with no body.
    put(BODY body)
    Sends the PUT request to the web application.
    Sends the TRACE request to the web application with no body.
  • Method Details

    • put

      RESPONSE put(BODY body) throws Exception
      Sends the PUT request to the web application.
      Parameters:
      body - the body of the request
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • put

      RESPONSE put() throws Exception
      Sends the PUT request to the web application with no body.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • delete

      RESPONSE delete() throws Exception
      Sends the DELETE request to the web application.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • purge

      RESPONSE purge() throws Exception
      Sends the PURGE request to the web application.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • head

      RESPONSE head() throws Exception
      Sends the HEAD request to the web application.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • get

      RESPONSE get() throws Exception
      Sends the GET request to the web application.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • post

      RESPONSE post(BODY body) throws Exception
      Sends the POST request to the web application.
      Parameters:
      body - the body of the request
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • post

      RESPONSE post() throws Exception
      Sends the POST request to the web application with no body.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • trace

      RESPONSE trace() throws Exception
      Sends the TRACE request to the web application with no body.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • patch

      RESPONSE patch(BODY body) throws Exception
      Sends the PATCH request to the web application.
      Parameters:
      body - the body of the request
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • patch

      RESPONSE patch() throws Exception
      Sends the PATCH request to the web application with no body.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • options

      RESPONSE options() throws Exception
      Sends the OPTIONS request to the web application with no body.
      Returns:
      the response
      Throws:
      Exception - if an error occurs
    • connect

      RESPONSE connect() throws Exception
      Sends the CONNECT request to the web application with no body.
      Returns:
      the response
      Throws:
      Exception - if an error occurs