CXFConnection (Apache CXF API 2.5.0.fuse-70-097 API)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.jca.outbound
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
`void` | `close()` Closes the connection handle.
`
`<T> T`
` | `getService(Class<T> serviceClass)` Retrieves a service object to invoke.

Method Detail

### 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 can 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF