public class RuntimeResourceModelValidator extends AbstractResourceModelVisitor
Modifier and Type | Field and Description |
---|---|
private static java.util.List<javax.ws.rs.core.MediaType> |
StarTypeList |
private MessageBodyWorkers |
workers |
Constructor and Description |
---|
RuntimeResourceModelValidator(MessageBodyWorkers workers)
Create a new validator instance.
|
Modifier and Type | Method and Description |
---|---|
private void |
checkIntersectingMediaTypes(RuntimeResource runtimeResource,
java.lang.String httpMethod,
ResourceMethod m1,
ResourceMethod m2) |
private void |
checkMethods(RuntimeResource resource) |
private java.util.List<javax.ws.rs.core.MediaType> |
getEffectiveInputTypes(ResourceMethod resourceMethod) |
private java.util.List<javax.ws.rs.core.MediaType> |
getEffectiveOutputTypes(ResourceMethod resourceMethod) |
private boolean |
sameHttpMethod(ResourceMethod m1,
ResourceMethod m2) |
void |
visitRuntimeResource(RuntimeResource runtimeResource)
Process a runtime resource model.
|
visitChildResource, visitInvocable, visitMethodHandler, visitResource, visitResourceHandlerConstructor, visitResourceMethod, visitResourceModel
private final MessageBodyWorkers workers
private static final java.util.List<javax.ws.rs.core.MediaType> StarTypeList
public RuntimeResourceModelValidator(MessageBodyWorkers workers)
workers
- Message body workers.public void visitRuntimeResource(RuntimeResource runtimeResource)
ResourceModelVisitor
visitRuntimeResource
in interface ResourceModelVisitor
visitRuntimeResource
in class AbstractResourceModelVisitor
runtimeResource
- runtime resource model.private void checkMethods(RuntimeResource resource)
private void checkIntersectingMediaTypes(RuntimeResource runtimeResource, java.lang.String httpMethod, ResourceMethod m1, ResourceMethod m2)
private java.util.List<javax.ws.rs.core.MediaType> getEffectiveInputTypes(ResourceMethod resourceMethod)
private java.util.List<javax.ws.rs.core.MediaType> getEffectiveOutputTypes(ResourceMethod resourceMethod)
private boolean sameHttpMethod(ResourceMethod m1, ResourceMethod m2)