@Test public void testGet() throws Exception { InstanceController instanceController = new InstanceController(); NanoHTTPD.Response response = instanceController.get(null,null,null); String body = IOUtils.toString(response.getData()); assertEquals("Error, method not allowed", body); assertEquals(NanoHTTPD.Response.Status.METHOD_NOT_ALLOWED, response.getStatus()); }
@Override public Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession) { return ResponseGenerator.generateMethodNotAllowedResponse(); }
InstanceController implements RouterNanoHTTPD.UriResponder { @Override public Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession) { return ResponseGenerator.generateMethodNotAllowedResponse(); } }
InstanceController implements RouterNanoHTTPD.UriResponder { @Override public Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession) { return ResponseGenerator.generateMethodNotAllowedResponse(); }  }
InstanceController implements RouterNanoHTTPD.UriResponder { @Override public Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession) { return ResponseGenerator.generateMethodNotAllowedResponse(); }  @Override Response post(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession session); @Override Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession); @Override Response put(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession); @Override Response delete(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession); @Override Response other(String s, RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession); }
InstanceController implements RouterNanoHTTPD.UriResponder { @Override public Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession) { return ResponseGenerator.generateMethodNotAllowedResponse(); }  @Override Response post(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession session); @Override Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession); @Override Response put(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession); @Override Response delete(RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession); @Override Response other(String s, RouterNanoHTTPD.UriResource uriResource, Map<String, String> map, NanoHTTPD.IHTTPSession ihttpSession);  }