Class EndpointOperationInfoResourceComparator
java.lang.Object
org.apache.cxf.jaxrs.model.OperationResourceInfoComparatorBase
org.apache.cxf.jaxrs.model.OperationResourceInfoComparator
org.codice.ddf.spatial.ogc.catalog.common.EndpointOperationInfoResourceComparator
- All Implemented Interfaces:
Comparator<org.apache.cxf.jaxrs.model.OperationResourceInfo>,org.apache.cxf.jaxrs.ext.ResourceComparator
public class EndpointOperationInfoResourceComparator
extends org.apache.cxf.jaxrs.model.OperationResourceInfoComparator
implements org.apache.cxf.jaxrs.ext.ResourceComparator
Custom
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.apache.cxf.jaxrs.model.ClassResourceInfo cri1, org.apache.cxf.jaxrs.model.ClassResourceInfo cri2, org.apache.cxf.message.Message message) intcompare(org.apache.cxf.jaxrs.model.OperationResourceInfo oper1, org.apache.cxf.jaxrs.model.OperationResourceInfo oper2, org.apache.cxf.message.Message message) Methods inherited from class org.apache.cxf.jaxrs.model.OperationResourceInfoComparator
compareMethods inherited from class org.apache.cxf.jaxrs.model.OperationResourceInfoComparatorBase
compare, compare, compareMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
HTTP_GET
- See Also:
-
HTTP_POST
- See Also:
-
QUERY_PARAM_DELIMITER
- See Also:
-
REQUEST_PARAM
- See Also:
-
SERVICE_PARAM
- See Also:
-
UNKNOWN_SERVICE
- See Also:
-
UNKNOWN_OPERATION
- See Also:
-
-
Constructor Details
-
EndpointOperationInfoResourceComparator
public EndpointOperationInfoResourceComparator() -
EndpointOperationInfoResourceComparator
-
-
Method Details
-
compare
public int compare(org.apache.cxf.jaxrs.model.ClassResourceInfo cri1, org.apache.cxf.jaxrs.model.ClassResourceInfo cri2, org.apache.cxf.message.Message message) - Specified by:
comparein interfaceorg.apache.cxf.jaxrs.ext.ResourceComparator
-
compare
public int compare(org.apache.cxf.jaxrs.model.OperationResourceInfo oper1, org.apache.cxf.jaxrs.model.OperationResourceInfo oper2, org.apache.cxf.message.Message message) - Specified by:
comparein interfaceorg.apache.cxf.jaxrs.ext.ResourceComparator
-