Class WriterClient<CONTEXTOPERATION extends Enum<?>>

java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.common.client.JaxrsCommonClient
ee.jakarta.tck.ws.rs.ee.rs.ext.interceptor.clientwriter.WriterClient<CONTEXTOPERATION>
Type Parameters:
CONTEXTOPERATION -
Direct Known Subclasses:
JAXRSClientIT, JAXRSClientIT

public abstract class WriterClient<CONTEXTOPERATION extends Enum<?>> extends JaxrsCommonClient
Client with given ContextOperation enum, so that an enum name is passed as a http header to an interceptor. Due to the ContextOperation, the proper method on an interceptor is called.
  • Constructor Details

    • WriterClient

      public WriterClient()
  • Method Details

    • setOperationAndEntity

      protected void setOperationAndEntity(CONTEXTOPERATION op)
      Set the header OPERATION to a proper value Also set the entity, it is good as it is here for most of the tests. For the rest, the entity needs to be replaced.
    • invoke

      protected void invoke() throws JAXRSCommonClient.Fault
      Invoke and convert IOException to Fault
      Overrides:
      invoke in class JaxrsCommonClient
      Throws:
      JAXRSCommonClient.Fault - If an error occurs during the test run
    • addProviders

      protected abstract void addProviders()
      Register providers to client configuration
      Parameters:
      response - ClientRequestFilter#abortWith response