APISonar


org.eclipse.jetty.http.HttpScheme.HTTP

> org > eclipse > jetty > http > HttpScheme > HTTP
org APIs eclipse APIs jetty APIs http APIs HttpScheme APIs HTTP APIs

Example 1
protected MetaData.Request newRequest(String method, HttpFields fields)
    {
        String host = "localhost";
        int port = connector.getLocalPort();
        String authority = host + ":" + port;
        return new MetaData.Request(method, HttpScheme.HTTP, new HostPortHttpField(authority), "/", HttpVersion.HTTP_2, fields);
    }
Example 2
public AbstractHttpClientServerTest(SslContextFactory sslContextFactory)
    {
        this.sslContextFactory = sslContextFactory;
        this.scheme = (sslContextFactory == null ? HttpScheme.HTTP : HttpScheme.HTTPS).asString();
    }
Example 3
private ServerConnector defaultConnector(final HttpScheme httpScheme) {
    if (HttpScheme.HTTP == httpScheme) {
      return bean(HTTP_CONNECTOR_ID, ServerConnector.class);
    }
    else if (HttpScheme.HTTPS == httpScheme) {
      return bean(HTTPS_CONNECTOR_ID, ServerConnector.class);
    }
    else {
      throw new UnsupportedHttpSchemeException(httpScheme);
    }
  }