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 Details

  • Constructor Details

    • EndpointOperationInfoResourceComparator

      public EndpointOperationInfoResourceComparator()
    • EndpointOperationInfoResourceComparator

      public EndpointOperationInfoResourceComparator(String serviceName)
  • 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:
      compare in interface org.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:
      compare in interface org.apache.cxf.jaxrs.ext.ResourceComparator