final Request coyoteReq = new Request(); coyoteReq.scheme().setString(req.scheme());
/** * @return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
/** * Return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
/** * Return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
/** * Return the scheme used to make this Request. */ public String getScheme() { return (coyoteRequest.scheme().toString()); }
/** * @return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
/** * Return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
/** * Return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
/* */ public String getScheme() /* */ { /* 1296 */ return this.coyoteRequest.scheme().toString(); /* */ } /* */
/** * Return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
/** * Return the scheme used to make this Request. */ public String getScheme() { return (coyoteRequest.scheme().toString()); }
/** * Return the scheme used to make this Request. */ public String getScheme() { return (coyoteRequest.scheme().toString()); }
/** * Return the scheme used to make this Request. */ @Override public String getScheme() { return coyoteRequest.scheme().toString(); }
private void setHost(final Request request, final CharSequence host) throws IOException { CharChunk chunk; try { // slightly fancier logic.. final URL newUrl = new URL(host.toString()); final String protocol = newUrl.getProtocol(); final int port = newUrl.getPort(); final String newHost = newUrl.getHost(); request.getCoyoteRequest().serverName().recycle(); chunk = request.getCoyoteRequest().serverName().getCharChunk(); chunk.recycle(); chunk.append(newHost); request.getCoyoteRequest().serverName().toChars(); request.getCoyoteRequest().setServerPort(port); request.getCoyoteRequest().scheme().recycle(); chunk = request.getCoyoteRequest().scheme().getCharChunk(); chunk.recycle(); chunk.append(protocol); request.getCoyoteRequest().scheme().toChars(); } catch (final MalformedURLException e) { // assume we just have the host name request.getCoyoteRequest().serverName().recycle(); chunk = request.getCoyoteRequest().serverName().getCharChunk(); chunk.recycle(); chunk.append(host.toString()); request.getCoyoteRequest().serverName().toChars(); } }
final boolean receivedEndOfHeaders() throws ConnectionException { if (coyoteRequest.method().isNull() || coyoteRequest.scheme().isNull() || coyoteRequest.requestURI().isNull()) { throw new ConnectionException(sm.getString("stream.header.required", getConnectionId(), getIdentifier()), Http2Error.PROTOCOL_ERROR); } // Cookie headers need to be concatenated into a single header // See RFC 7540 8.1.2.5 // Can only do this once the headers are fully received if (cookieHeader != null) { coyoteRequest.getMimeHeaders().addValue("cookie").setString(cookieHeader.toString()); } return headerState == HEADER_STATE_REGULAR || headerState == HEADER_STATE_PSEUDO; }
final void push(Request request) throws IOException { // Can only push when supported and from a peer initiated stream if (!isPushSupported() || getIdentifier().intValue() % 2 == 0) { return; } // Set the special HTTP/2 headers request.getMimeHeaders().addValue(":method").duplicate(request.method()); request.getMimeHeaders().addValue(":scheme").duplicate(request.scheme()); StringBuilder path = new StringBuilder(request.requestURI().toString()); if (!request.queryString().isNull()) { path.append('?'); path.append(request.queryString().toString()); } request.getMimeHeaders().addValue(":path").setString(path.toString()); // Authority needs to include the port only if a non-standard port is // being used. if (!(request.scheme().equals("http") && request.getServerPort() == 80) && !(request.scheme().equals("https") && request.getServerPort() == 443)) { request.getMimeHeaders().addValue(":authority").setString( request.serverName().getString() + ":" + request.getServerPort()); } else { request.getMimeHeaders().addValue(":authority").duplicate(request.serverName()); } push(handler, request, this); }
pushTarget.scheme().setString(baseRequest.getScheme());
contentDelimitation = false; if (sslSupport != null) { request.scheme().setString("https");
if( isSSL ) { req.scheme().setString("https");