Class ResourceDefinitionEndPoint

  • All Implemented Interfaces:
    java.util.function.Function<one.xingyi.core.http.ServiceRequest,​java.util.concurrent.CompletableFuture<java.util.Optional<one.xingyi.core.http.ServiceResponse>>>, one.xingyi.core.endpoints.EndPoint, one.xingyi.core.endpoints.MethodAndPathDescription

    public class ResourceDefinitionEndPoint
    extends java.lang.Object
    implements one.xingyi.core.endpoints.EndPoint
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceDefinitionEndPoint​(one.xingyi.core.endpoints.EndpointContext<?> context, java.util.List<one.xingyi.core.endpoints.HasBookmarkAndUrl> companions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.util.Optional<one.xingyi.core.http.ServiceResponse>> apply​(one.xingyi.core.http.ServiceRequest serviceRequest)  
      java.util.List<one.xingyi.core.endpoints.MethodPathAndDescription> description()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • ResourceDefinitionEndPoint

        public ResourceDefinitionEndPoint​(one.xingyi.core.endpoints.EndpointContext<?> context,
                                          java.util.List<one.xingyi.core.endpoints.HasBookmarkAndUrl> companions)
    • Method Detail

      • description

        public java.util.List<one.xingyi.core.endpoints.MethodPathAndDescription> description()
        Specified by:
        description in interface one.xingyi.core.endpoints.EndPoint
        Specified by:
        description in interface one.xingyi.core.endpoints.MethodAndPathDescription
      • apply

        public java.util.concurrent.CompletableFuture<java.util.Optional<one.xingyi.core.http.ServiceResponse>> apply​(one.xingyi.core.http.ServiceRequest serviceRequest)
        Specified by:
        apply in interface java.util.function.Function<one.xingyi.core.http.ServiceRequest,​java.util.concurrent.CompletableFuture<java.util.Optional<one.xingyi.core.http.ServiceResponse>>>