Package one.xingyi.core.mediatype
Class JsonAndLensDefnClientMediaTypeDefn<J,ClientEntity extends IXingYiClientResource,ClientView extends IXingYiView<ClientEntity>>
- java.lang.Object
-
- one.xingyi.core.mediatype.JsonAndLensDefnClientMediaTypeDefn<J,ClientEntity,ClientView>
-
- All Implemented Interfaces:
IMediaTypeClientDefn<ClientEntity,ClientView>
public class JsonAndLensDefnClientMediaTypeDefn<J,ClientEntity extends IXingYiClientResource,ClientView extends IXingYiView<ClientEntity>> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringacceptHeader(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
-
-
-
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)
-
-
Method Detail
-
makeFrom
public java.util.concurrent.CompletableFuture<ClientView> makeFrom(ServiceResponse serviceResponse)
Description copied from interface:IMediaTypeClientDefnThis is the body of the service response
-
acceptHeader
public java.lang.String acceptHeader(java.util.Set<java.lang.String> capabilities)
Description copied from interface:IMediaTypeClientDefnCalculate an accept header for these capabilities (which are at the moment just a list of lensNames)- Specified by:
acceptHeaderin interfaceIMediaTypeClientDefn<ClientEntity extends IXingYiClientResource,ClientView extends IXingYiView<ClientEntity>>
-
-