public class EndpointOperationInfoResourceComparator
extends org.apache.cxf.jaxrs.model.OperationResourceInfoComparator
implements org.apache.cxf.jaxrs.ext.ResourceComparator
ResourceComparator
to determine which method to call on the WfsEndpoint
and CswEndpoint
based on the incoming request. By default JAX-RS only uses the URI path,
HTTP method, Consumes Media Type, and Produces Media Type to determine which method to execute.
The WfsEndpoint
and CswEndpoint
require the decision to made based on the
"request" query parameter or the type of XML document.Modifier and Type | Field and Description |
---|---|
static String |
HTTP_GET |
static String |
HTTP_POST |
static String |
QUERY_PARAM_DELIMITER |
static String |
REQUEST_PARAM |
static String |
SERVICE_PARAM |
static String |
UNKNOWN_OPERATION |
static String |
UNKNOWN_SERVICE |
Constructor and Description |
---|
EndpointOperationInfoResourceComparator() |
EndpointOperationInfoResourceComparator(String serviceName) |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.apache.cxf.jaxrs.model.ClassResourceInfo cri1,
org.apache.cxf.jaxrs.model.ClassResourceInfo cri2,
org.apache.cxf.message.Message message) |
int |
compare(org.apache.cxf.jaxrs.model.OperationResourceInfo oper1,
org.apache.cxf.jaxrs.model.OperationResourceInfo oper2,
org.apache.cxf.message.Message message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final String HTTP_GET
public static final String HTTP_POST
public static final String QUERY_PARAM_DELIMITER
public static final String REQUEST_PARAM
public static final String SERVICE_PARAM
public static final String UNKNOWN_SERVICE
public static final String UNKNOWN_OPERATION
public EndpointOperationInfoResourceComparator()
public EndpointOperationInfoResourceComparator(String serviceName)
public int compare(org.apache.cxf.jaxrs.model.ClassResourceInfo cri1, org.apache.cxf.jaxrs.model.ClassResourceInfo cri2, org.apache.cxf.message.Message message)
compare
in interface org.apache.cxf.jaxrs.ext.ResourceComparator
public int compare(org.apache.cxf.jaxrs.model.OperationResourceInfo oper1, org.apache.cxf.jaxrs.model.OperationResourceInfo oper2, org.apache.cxf.message.Message message)
compare
in interface org.apache.cxf.jaxrs.ext.ResourceComparator
This work is licensed under a Creative Commons Attribution 4.0 International License.