public class ProduceTypeResourceComparator extends Object implements org.apache.cxf.jaxrs.ext.ResourceComparator
Modifier and Type | Field and Description |
---|---|
static List<javax.ws.rs.core.MediaType> |
PRIORITIZED_MEDIA_LIST
The prioritized MediaType list.
|
Constructor and Description |
---|
ProduceTypeResourceComparator()
Initiates the comparator.
|
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)
Compares the class to handle.
|
int |
compare(org.apache.cxf.jaxrs.model.OperationResourceInfo oper1,
org.apache.cxf.jaxrs.model.OperationResourceInfo oper2,
org.apache.cxf.message.Message message)
Compares the method to handle.
|
public static final List<javax.ws.rs.core.MediaType> PRIORITIZED_MEDIA_LIST
public ProduceTypeResourceComparator()
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
cri1
- the first class resource info.cri2
- the second class resource info.message
- the message, for comparison context.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
oper1
- the first resource handler info.oper2
- the second resource handler info.message
- the message, for comparison context.Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.