Interface CXFConnection


public interface CXFConnection
A CXFConnection is obtains from CXFConnectionFactory. It provides access to a CXF web service for client to invoke. The client should close the CXFConnection when the web service is no longer needed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the connection handle.
    <T> T
    getService(Class<T> serviceClass)
    Retrieves a service object to invoke.
  • Method Details

    • getService

      <T> T getService(Class<T> serviceClass) throws Exception
      Retrieves a service object to invoke. The serviceInterface class must match the serviceClass in the CXFConnectionSpec that is used to obtain this CXFConnection. Application should not continue to use the service object after the the connection has been closed by calling close().
      Type Parameters:
      T -
      Parameters:
      serviceClass -
      Returns:
      service object
      Throws:
      Exception
    • close

      void close() throws Exception
      Closes the connection handle. A caller should not use a closed connection.
      Throws:
      Exception - if an error occurs during close.