org.apache.cxf.interceptor

## Class AbstractEndpointSelectionInterceptor

- java.lang.Object
- - org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
  - - org.apache.cxf.interceptor.AbstractEndpointSelectionInterceptor

- All Implemented Interfaces:
    Interceptor<Message>, PhaseInterceptor<Message>

      public abstract class AbstractEndpointSelectionInterceptor
      extends AbstractPhaseInterceptor<Message>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractEndpointSelectionInterceptor()` Deprecated.
    `AbstractEndpointSelectionInterceptor(String phase)`
    `AbstractEndpointSelectionInterceptor(String id, String phase)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handleMessage(Message message)` Intercepts a message.
    `protected abstract Endpoint` | `selectEndpoint(Message message, Set<Endpoint> eps)` Select an Endpoint which will be used for the rest of the invocation.

    - ### Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor

      `addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AbstractEndpointSelectionInterceptor

          public AbstractEndpointSelectionInterceptor()

      Deprecated.

    - #### AbstractEndpointSelectionInterceptor

          public AbstractEndpointSelectionInterceptor(String phase)

    - #### AbstractEndpointSelectionInterceptor

          public AbstractEndpointSelectionInterceptor(String id,
                                              String phase)

  - ### Method Detail

    - #### handleMessage

          public void handleMessage(Message message)
                             throws Fault

      Description copied from interface: `Interceptor`
      Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.
      Throws:
        `Fault`

    - #### selectEndpoint

          protected abstract Endpoint selectEndpoint(Message message,
                                Set<Endpoint> eps)

      Select an Endpoint which will be used for the rest of the invocation.
      Parameters:
        `message` -
        `eps` -

Apache CXF