Class JerseyWebTarget.JerseyInvocationBuilder

java.lang.Object
de.oktoflow.platform.support.rest.spark.JerseyWebTarget.JerseyInvocationBuilder
All Implemented Interfaces:
de.iip_ecosphere.platform.support.rest.RestTarget.Invocation
Enclosing class:
JerseyWebTarget

private class JerseyWebTarget.JerseyInvocationBuilder extends Object implements de.iip_ecosphere.platform.support.rest.RestTarget.Invocation
Wraps a Glassfish/Jersey invocation builder.
Author:
Holger Eichelberger, SSE
  • Field Details

    • invocationBuilder

      private javax.ws.rs.client.Invocation.Builder invocationBuilder
    • mediaType

      private String mediaType
  • Constructor Details

    • JerseyInvocationBuilder

      private JerseyInvocationBuilder(javax.ws.rs.client.WebTarget webTarget, String mediaType)
      Creates a wrapping instance.
      Parameters:
      webTarget - the request target
      mediaType - the media type, see MediaType
  • Method Details

    • get

      public <T> T get(Class<T> cls) throws IOException
      Specified by:
      get in interface de.iip_ecosphere.platform.support.rest.RestTarget.Invocation
      Throws:
      IOException
    • put

      public void put(String body) throws IOException
      Specified by:
      put in interface de.iip_ecosphere.platform.support.rest.RestTarget.Invocation
      Throws:
      IOException
    • delete

      public void delete() throws IOException
      Specified by:
      delete in interface de.iip_ecosphere.platform.support.rest.RestTarget.Invocation
      Throws:
      IOException