@Test public void origins() throws Exception { final SockJsConfig config = SockJsConfig.withPrefix("/simplepush").disableWebSocket().build(); final FullHttpResponse response = Info.response(config, createHttpRequest("/simplepush")); assertThat(infoAsJson(response).get("origins").get(0).asText(), is("*:*")); response.release(); }
public static FullHttpResponse response(final SockJsConfig config, final HttpRequest request) throws Exception { final FullHttpResponse response = createResponse(request); Transports.setNoCacheHeaders(response); Transports.writeContent(response, infoContent(config), "application/json; charset=UTF-8"); return response; }
Info { public static FullHttpResponse response(final SockJsConfig config, final HttpRequest request) throws Exception { final FullHttpResponse response = createResponse(request); Transports.setNoCacheHeaders(response); Transports.writeContent(response, infoContent(config), "application/json; charset=UTF-8"); return response; } }
Info { public static FullHttpResponse response(final SockJsConfig config, final HttpRequest request) throws Exception { final FullHttpResponse response = createResponse(request); Transports.setNoCacheHeaders(response); Transports.writeContent(response, infoContent(config), "application/json; charset=UTF-8"); return response; } private  Info(); }
Info { public static FullHttpResponse response(final SockJsConfig config, final HttpRequest request) throws Exception { final FullHttpResponse response = createResponse(request); Transports.setNoCacheHeaders(response); Transports.writeContent(response, infoContent(config), "application/json; charset=UTF-8"); return response; } private  Info(); static boolean matches(final String path); static FullHttpResponse response(final SockJsConfig config, final HttpRequest request); }
Info { public static FullHttpResponse response(final SockJsConfig config, final HttpRequest request) throws Exception { final FullHttpResponse response = createResponse(request); Transports.setNoCacheHeaders(response); Transports.writeContent(response, infoContent(config), "application/json; charset=UTF-8"); return response; } private  Info(); static boolean matches(final String path); static FullHttpResponse response(final SockJsConfig config, final HttpRequest request);  }