Class GXConnection


  • public class GXConnection
    extends Object
    A remote connection for a GXHTTPStringRequest.
    Author:
    Manuele Simi (ISTI-CNR), Luca Frosini (ISTI-CNR)
    • Constructor Detail

      • GXConnection

        public GXConnection​(String address)
    • Method Detail

      • setAgent

        protected void setAgent​(String agent)
        Parameters:
        agent -
      • setPathParameters

        public void setPathParameters​(String parameters)
        Sets the path parameters for the connection.
        Parameters:
        parameters -
      • setQueryParameters

        public void setQueryParameters​(String parameters)
        Sets the query parameters for the connection.
        Parameters:
        parameters -
      • reset

        public void reset()
        Resets the connection.
      • addBody

        public void addBody​(String body)
        The body of the request.
        Parameters:
        body -
      • addBodyAsStream

        public void addBodyAsStream​(InputStream bodyAsStream)
        Parameters:
        bodyAsStream - the stream to set as input
      • setProperty

        public void setProperty​(String name,
                                String value)
        Adds a property as header.
        Parameters:
        name -
        value -
      • setExtCall

        public void setExtCall​(boolean extCall)
        Parameters:
        extCall - the extCall to set
      • isExtCall

        public boolean isExtCall()
        Returns:
        the extCall