@Priority(value=2147483647) public class OptionsMethodProcessor extends Object implements ModelProcessor
Model processor
enhancing resource model
and sub resources
by default OPTIONS methods defined by JAX-RS specification.Constructor and Description |
---|
OptionsMethodProcessor()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
ResourceModel |
processResourceModel(ResourceModel resourceModel,
javax.ws.rs.core.Configuration configuration)
Process
resourceModel and return the processed model. |
ResourceModel |
processSubResource(ResourceModel subResourceModel,
javax.ws.rs.core.Configuration configuration)
Process
subResourceModel which was returned a sub resource locator. |
public ResourceModel processResourceModel(ResourceModel resourceModel, javax.ws.rs.core.Configuration configuration)
ModelProcessor
resourceModel
and return the processed model. Returning input resourceModel
will cause
no effect on the final resource model.processResourceModel
in interface ModelProcessor
resourceModel
- Input resource model to be processed.configuration
- Runtime configuration.public ResourceModel processSubResource(ResourceModel subResourceModel, javax.ws.rs.core.Configuration configuration)
ModelProcessor
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.processSubResource
in interface ModelProcessor
subResourceModel
- Sub resource
which is based on sub resource returned from sub resource locator.configuration
- Runtime configuration.resource
which should be used for handling sub resource.Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.