Jsr160RequestDispatcher implements RequestDispatcher { public boolean canHandle(JmxRequest pJmxRequest) { return pJmxRequest.getTargetConfig() != null; } Jsr160RequestDispatcher(Converters pConverters,
                                   ServerHandle pServerInfo,
                                   Restrictor pRestrictor,
                                   Configuration pConfig); Object dispatchRequest(JmxRequest pJmxReq); boolean canHandle(JmxRequest pJmxRequest); boolean useReturnValueWithPath(JmxRequest pJmxRequest); static final String ALLOWED_TARGETS_SYSPROP; static final String ALLOWED_TARGETS_ENV; }
@Test public void canHandle() { assertFalse(dispatcher.canHandle(JmxRequestFactory.createGetRequest("/read/java.lang:type=Memory", procParams))); JmxRequest req = preparePostReadRequest(null); assertTrue(dispatcher.canHandle(req)); }