Class JaxRsResource<T>

java.lang.Object
se.fortnox.reactivewizard.jaxrs.JaxRsResource<T>
All Implemented Interfaces:
Comparable<JaxRsResource>

public class JaxRsResource<T> extends Object implements Comparable<JaxRsResource>
Represents a JaxRs resource. Maps to a method of a resource class. Use the call method with an incoming request to invoke the method of the resource. Returns null if the request does not match.
  • Constructor Details

  • Method Details

    • canHandleRequest

      public boolean canHandleRequest(JaxRsRequest request)
    • call

      protected reactor.core.publisher.Mono<JaxRsResult<T>> call(JaxRsRequest request)
    • compareTo

      public int compareTo(JaxRsResource jaxRsResource)
      Specified by:
      compareTo in interface Comparable<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getResourceMethod

      public Method getResourceMethod()
    • getInstanceMethod

      public Method getInstanceMethod()
    • getHttpMethod

      public io.netty.handler.codec.http.HttpMethod getHttpMethod()
    • getProduces

      public String getProduces()
    • log

      public void log(reactor.netty.http.server.HttpServerRequest request, reactor.netty.http.server.HttpServerResponse response, long requestStartTime)
    • getPath

      public String getPath()