Class JsonAndLensDefnClientMediaTypeDefn<J,​ClientEntity extends IXingYiClientResource,​ClientView extends IXingYiView<ClientEntity>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String acceptHeader​(java.util.Set<java.lang.String> capabilities)
      Calculate an accept header for these capabilities (which are at the moment just a list of lensNames)
      java.util.concurrent.CompletableFuture<ClientView> makeFrom​(ServiceResponse serviceResponse)
      This is the body of the service response
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonAndLensDefnClientMediaTypeDefn

        public JsonAndLensDefnClientMediaTypeDefn​(java.lang.String entityName,
                                                  JsonParserAndWriter<J> json,
                                                  java.util.function.Function<java.lang.String,​java.util.concurrent.CompletableFuture<java.lang.String>> getDefn,
                                                  java.util.function.Function<java.lang.String,​LensDefnStore> makeLensStore,
                                                  IXingYiClientFactory<ClientEntity,​ClientView> makeEntity)