Class OAuth1ServerFeature.OAuthModelProcessor

java.lang.Object
org.glassfish.jersey.server.oauth1.OAuth1ServerFeature.OAuthModelProcessor
All Implemented Interfaces:
ModelProcessor
Enclosing class:
OAuth1ServerFeature

@Priority(100) private static class OAuth1ServerFeature.OAuthModelProcessor extends Object implements ModelProcessor
  • Field Details

    • resources

      private final Resource[] resources
  • Constructor Details

    • OAuthModelProcessor

      private OAuthModelProcessor(Resource... resources)
  • Method Details

    • processResourceModel

      public ResourceModel processResourceModel(ResourceModel resourceModel, javax.ws.rs.core.Configuration configuration)
      Description copied from interface: ModelProcessor
      Process resourceModel and return the processed model. Returning input resourceModel will cause no effect on the final resource model.
      Specified by:
      processResourceModel in interface ModelProcessor
      Parameters:
      resourceModel - Input resource model to be processed.
      configuration - Runtime configuration.
      Returns:
      Processed resource model containing root resources. Non root resources will be ignored.
    • processSubResource

      public ResourceModel processSubResource(ResourceModel subResourceModel, javax.ws.rs.core.Configuration configuration)
      Description copied from interface: ModelProcessor
      Process subResourceModel which was returned a sub resource locator.

      The subResourceModel contains only one resource representing model that should be processed by further matching. The method must return also exactly one resource in the model. Returning input subResourceModel instance will cause no effect on the final sub resource model.

      Specified by:
      processSubResource in interface ModelProcessor
      Parameters:
      subResourceModel - Sub resource which is based on sub resource returned from sub resource locator.
      configuration - Runtime configuration.
      Returns:
      Processed resource model with one resource which should be used for handling sub resource.