Interface Transport

  • All Known Implementing Classes:
    GaeHttpTransport, JdkHttpTransport

    public interface Transport
    This interface defines a Transport.
    Since:
    1.0 Nov 30, 2005
    Version:
    1.0
    Author:
    http://cheenath.com
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.OutputStream connect​(java.lang.String url, java.lang.String soapAction)
      Connect to the specified endpoint.
      java.io.OutputStream connect​(java.lang.String endpoint, java.util.HashMap<java.lang.String,​java.lang.String> headers)  
      java.io.OutputStream connect​(java.lang.String endpoint, java.util.HashMap<java.lang.String,​java.lang.String> httpHeaders, boolean b)  
      java.io.InputStream getContent()
      returns the response from the endpoint.
      boolean isSuccessful()
      checks whether the response from the remote server is successful or not.
      void setConfig​(ConnectorConfig config)  
    • Method Detail

      • connect

        java.io.OutputStream connect​(java.lang.String url,
                                     java.lang.String soapAction)
                              throws java.io.IOException
        Connect to the specified endpoint.
        Parameters:
        url - endpoint address
        soapAction - soap action
        Returns:
        output stream that can be used to send response
        Throws:
        java.io.IOException - failed to connect to the endpoint
      • getContent

        java.io.InputStream getContent()
                                throws java.io.IOException
        returns the response from the endpoint. This method must be called after a connect call.
        Returns:
        response or error stream.
        Throws:
        java.io.IOException - failed to get content
      • isSuccessful

        boolean isSuccessful()
        checks whether the response from the remote server is successful or not.
        Returns:
        true if the call was successful
      • connect

        java.io.OutputStream connect​(java.lang.String endpoint,
                                     java.util.HashMap<java.lang.String,​java.lang.String> headers)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • connect

        java.io.OutputStream connect​(java.lang.String endpoint,
                                     java.util.HashMap<java.lang.String,​java.lang.String> httpHeaders,
                                     boolean b)
                              throws java.io.IOException
        Throws:
        java.io.IOException