@Test public void shouldAcceptJson() { final Enumeration<String> accept = Collections.enumeration(Arrays.asList("text/xml;q=1.0", "application/json;q=0.9 , text/*")); assertTrue(MetadataClientRequestProcessor.acceptsJson(accept)); }
private boolean acceptsJson() { return acceptsJson(servletRequest.getHeaders("Accept")); }
MetadataClientRequestProcessor extends MessageProcessorBase { private boolean acceptsJson() { return acceptsJson(servletRequest.getHeaders("Accept")); } }
MetadataClientRequestProcessor extends MessageProcessorBase { private boolean acceptsJson() { return acceptsJson(servletRequest.getHeaders("Accept")); } MetadataClientRequestProcessor(String target,
            HttpServletRequest request, HttpServletResponse response); }
MetadataClientRequestProcessor extends MessageProcessorBase { private boolean acceptsJson() { return acceptsJson(servletRequest.getHeaders("Accept")); } MetadataClientRequestProcessor(String target,
            HttpServletRequest request, HttpServletResponse response); boolean canProcess(); @Override void process(); @Override MessageInfo createRequestMessageInfo(); }
MetadataClientRequestProcessor extends MessageProcessorBase { private boolean acceptsJson() { return acceptsJson(servletRequest.getHeaders("Accept")); } MetadataClientRequestProcessor(String target,
            HttpServletRequest request, HttpServletResponse response); boolean canProcess(); @Override void process(); @Override MessageInfo createRequestMessageInfo();  }