@Test void testParseRequestTarget() { HttpURI uri = new HttpURI(); uri.parseRequestTarget("GET", "*"); assertNull(uri.getHost()); assertEquals("*", uri.getPath()); uri.parseRequestTarget("GET", "/foo/bar"); assertNull(uri.getHost()); assertEquals("/foo/bar", uri.getPath()); uri.parseRequestTarget("GET", " assertNull(uri.getHost()); assertEquals(" uri.parseRequestTarget("GET", "http: assertEquals("foo", uri.getHost()); assertEquals("/bar", uri.getPath()); }
public void parseRequestTarget(String method, String uri) { clear(); this.uri = uri; if (HttpMethod.CONNECT.is(method)) path = uri; else parse(uri.startsWith("/") ? State.PATH : State.START, uri, 0, uri.length()); }
HttpURI { public void parseRequestTarget(String method, String uri) { clear(); this.uri = uri; if (HttpMethod.CONNECT.is(method)) path = uri; else parse(uri.startsWith("/") ? State.PATH : State.START, uri, 0, uri.length()); } }
HttpURI { public void parseRequestTarget(String method, String uri) { clear(); this.uri = uri; if (HttpMethod.CONNECT.is(method)) path = uri; else parse(uri.startsWith("/") ? State.PATH : State.START, uri, 0, uri.length()); } HttpURI();  HttpURI(String scheme, String host, int port, String path, String param, String query, String fragment);  HttpURI(HttpURI uri);  HttpURI(String uri);  HttpURI(URI uri);  HttpURI(String scheme, String host, int port, String pathQuery); }
HttpURI { public void parseRequestTarget(String method, String uri) { clear(); this.uri = uri; if (HttpMethod.CONNECT.is(method)) path = uri; else parse(uri.startsWith("/") ? State.PATH : State.START, uri, 0, uri.length()); } HttpURI();  HttpURI(String scheme, String host, int port, String path, String param, String query, String fragment);  HttpURI(HttpURI uri);  HttpURI(String uri);  HttpURI(URI uri);  HttpURI(String scheme, String host, int port, String pathQuery); static HttpURI createHttpURI(String scheme, String host, int port, String path, String param, String query, String fragment); void parse(String uri); void parseRequestTarget(String method, String uri); @Deprecated void parseConnect(String uri); void parse(String uri, int offset, int length); String getScheme(); void setScheme(String scheme); String getHost(); int getPort(); String getPath(); void setPath(String path); String getDecodedPath(); String getParam(); String getQuery(); void setQuery(String query); boolean hasQuery(); String getFragment(); void decodeQueryTo(MultiMap<String> parameters); void decodeQueryTo(MultiMap<String> parameters, String encoding); void decodeQueryTo(MultiMap<String> parameters, Charset encoding); void clear(); boolean isAbsolute(); @Override String toString(); @Override boolean equals(Object o); void setAuthority(String host, int port); URI toURI(); String getPathQuery(); void setPathQuery(String path); String getAuthority(); String getUser(); }
HttpURI { public void parseRequestTarget(String method, String uri) { clear(); this.uri = uri; if (HttpMethod.CONNECT.is(method)) path = uri; else parse(uri.startsWith("/") ? State.PATH : State.START, uri, 0, uri.length()); } HttpURI();  HttpURI(String scheme, String host, int port, String path, String param, String query, String fragment);  HttpURI(HttpURI uri);  HttpURI(String uri);  HttpURI(URI uri);  HttpURI(String scheme, String host, int port, String pathQuery); static HttpURI createHttpURI(String scheme, String host, int port, String path, String param, String query, String fragment); void parse(String uri); void parseRequestTarget(String method, String uri); @Deprecated void parseConnect(String uri); void parse(String uri, int offset, int length); String getScheme(); void setScheme(String scheme); String getHost(); int getPort(); String getPath(); void setPath(String path); String getDecodedPath(); String getParam(); String getQuery(); void setQuery(String query); boolean hasQuery(); String getFragment(); void decodeQueryTo(MultiMap<String> parameters); void decodeQueryTo(MultiMap<String> parameters, String encoding); void decodeQueryTo(MultiMap<String> parameters, Charset encoding); void clear(); boolean isAbsolute(); @Override String toString(); @Override boolean equals(Object o); void setAuthority(String host, int port); URI toURI(); String getPathQuery(); void setPathQuery(String path); String getAuthority(); String getUser();  }