@Test public void queryStringToMultimapOfOptionals() { URI urlWithNoQuery = URI.create("http: assertNull("no query", RequestAccumulator.queryStringToMultimapOfOptionals(urlWithNoQuery)); URI urlWithEmptyQuery = URI.create("http: assertEquals("empty query", ImmutableMultimap.of(), RequestAccumulator.queryStringToMultimapOfOptionals(urlWithEmptyQuery)); URI urlWithQuery = URI.create("http: assertEquals("url with query", ImmutableMultimap.of("foo", Optional.of("bar")), RequestAccumulator.queryStringToMultimapOfOptionals(urlWithQuery)); URI urlWithValuelessParam = URI.create("http: assertEquals("url with query", ImmutableMultimap.of("foo", Optional.empty()), RequestAccumulator.queryStringToMultimapOfOptionals(urlWithValuelessParam)); URI urlWithEmptyValuedParam = URI.create("http: assertEquals("url with query", ImmutableMultimap.of("foo", Optional.of("")), RequestAccumulator.queryStringToMultimapOfOptionals(urlWithEmptyValuedParam)); }
public static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest) { return new RequestCapture(httpVersion, fullCapturedRequest); }
RequestCapture { public static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest) { return new RequestCapture(httpVersion, fullCapturedRequest); } }
RequestCapture { public static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest) { return new RequestCapture(httpVersion, fullCapturedRequest); } private  RequestCapture(HttpVersion httpVersion, ParsedRequest request); }
RequestCapture { public static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest) { return new RequestCapture(httpVersion, fullCapturedRequest); } private  RequestCapture(HttpVersion httpVersion, ParsedRequest request); static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest); }
RequestCapture { public static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest) { return new RequestCapture(httpVersion, fullCapturedRequest); } private  RequestCapture(HttpVersion httpVersion, ParsedRequest request); static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest); final HttpVersion httpVersion; final ParsedRequest request; }