org.eclipse.jetty.server.Response.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(9.9k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中org.eclipse.jetty.server.Response.<init>方法的一些代码示例,展示了Response.<init>的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.<init>方法的具体详情如下:
包路径:org.eclipse.jetty.server.Response
类名称:Response
方法名:<init>

Response.<init>介绍

暂无

代码示例

代码示例来源:origin: neo4j/neo4j

private static Request newRequest()
{
  HttpChannel channel = mock( HttpChannel.class );
  Response response = new Response( channel, mock( HttpOutput.class ) );
  Request request = new Request( channel, mock( HttpInput.class ) );
  when( channel.getRequest() ).thenReturn( request );
  when( channel.getResponse() ).thenReturn( response );
  return request;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

protected AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server,
    Parser parser, Generator generator, Request request)
{
  super(endpoint);
  _uri = URIUtil.__CHARSET.equals(StringUtil.__UTF8)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  _parser = parser;
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = request;
  _response = new Response(this);
  _generator = generator;
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

protected AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server,
    Parser parser, Generator generator, Request request)
{
  super(endpoint);
  _uri = URIUtil.__CHARSET.equals(StringUtil.__UTF8)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  _parser = parser;
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = request;
  _response = new Response(this);
  _generator = generator;
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

protected AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server,
    Parser parser, Generator generator, Request request)
{
  super(endpoint);
  _uri = URIUtil.__CHARSET.equals(StringUtil.__UTF8)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  _parser = parser;
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = request;
  _response = new Response(this);
  _generator = generator;
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

public HttpChannel(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransport transport, HttpInput<T> input)
{
  _connector = connector;
  _configuration = configuration;
  _endPoint = endPoint;
  _transport = transport;
  _uri = new HttpURI(URIUtil.__CHARSET);
  _state = new HttpChannelState(this);
  _request = new Request(this, input);
  _response = new Response(this, new HttpOutput(this));
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

public HttpChannel(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransport transport, HttpInput<T> input)
{
  _connector = connector;
  _configuration = configuration;
  _endPoint = endPoint;
  _transport = transport;
  _uri = new HttpURI(URIUtil.__CHARSET);
  _state = new HttpChannelState(this);
  _request = new Request(this, input);
  _response = new Response(this, new HttpOutput(this));
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

protected AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server,
    Parser parser, Generator generator, Request request)
{
  super(endpoint);
  _uri = URIUtil.__CHARSET.equals(StringUtil.__UTF8)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  _parser = parser;
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = request;
  _response = new Response(this);
  _generator = generator;
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: org.eclipse.jetty/server

protected AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server,
    Parser parser, Generator generator, Request request)
{
  super(endpoint);
  _uri = URIUtil.__CHARSET.equals(StringUtil.__UTF8)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  _parser = parser;
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = request;
  _response = new Response(this);
  _generator = generator;
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: com.yahoo.vespa/jdisc_http_service

public static List<String> toSetCookieHeaders(Iterable<? extends Cookie> cookies) {
  // Ugly, bot Jetty does not provide a dedicated cookie parser (will be included in Jetty 10)
  Response response = new Response(null, null);
  for (Cookie cookie : cookies) {
    response.addSetRFC6265Cookie(
        cookie.getName(),
        cookie.getValue(),
        cookie.getDomain(),
        cookie.getPath(),
        cookie.getMaxAge(TimeUnit.SECONDS),
        cookie.isSecure(),
        cookie.isHttpOnly());
  }
  return new ArrayList<>(response.getHeaders("Set-Cookie"));
}

代码示例来源:origin: Nextdoor/bender

public HttpChannel(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransport transport, HttpInput<T> input)
{
  _connector = connector;
  _configuration = configuration;
  _endPoint = endPoint;
  _transport = transport;
  _uri = new HttpURI(URIUtil.__CHARSET);
  _state = new HttpChannelState(this);
  input.init(_state);
  _request = new Request(this, input);
  _response = new Response(this, new HttpOutput(this));
  if (LOG.isDebugEnabled())
    LOG.debug("new {} -> {},{},{}",this,_endPoint,_endPoint.getConnection(),_state);
}

代码示例来源:origin: jenkinsci/winstone

public HttpChannel(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransport transport)
{
  _connector = connector;
  _configuration = configuration;
  _endPoint = endPoint;
  _transport = transport;
  _state = new HttpChannelState(this);
  _request = new Request(this, newHttpInput(_state));
  _response = new Response(this, newHttpOutput());
  _executor = connector == null ? null : connector.getServer().getThreadPool();
  _requestLog = connector == null ? null : connector.getServer().getRequestLog();
  List<Listener> listeners = new ArrayList<>();
  if (connector != null)
    listeners.addAll(connector.getBeans(Listener.class));
  _listeners = listeners;
  if (LOG.isDebugEnabled())
    LOG.debug("new {} -> {},{},{}",
        this,
        _endPoint,
        _endPoint==null?null:_endPoint.getConnection(),
        _state);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server)
{
  super(endpoint);
  _uri = StringUtil.__UTF8.equals(URIUtil.__CHARSET)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  HttpBuffers ab = (HttpBuffers)_connector;
  _parser = newHttpParser(ab.getRequestBuffers(), endpoint, new RequestHandler());
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = new Request(this);
  _response = new Response(this);
  _generator = newHttpGenerator(ab.getResponseBuffers(), endpoint);
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: org.eclipse.jetty/server

public AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server)
{
  super(endpoint);
  _uri = StringUtil.__UTF8.equals(URIUtil.__CHARSET)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  HttpBuffers ab = (HttpBuffers)_connector;
  _parser = newHttpParser(ab.getRequestBuffers(), endpoint, new RequestHandler());
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = new Request(this);
  _response = new Response(this);
  _generator = newHttpGenerator(ab.getResponseBuffers(), endpoint);
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server)
{
  super(endpoint);
  _uri = StringUtil.__UTF8.equals(URIUtil.__CHARSET)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  HttpBuffers ab = (HttpBuffers)_connector;
  _parser = newHttpParser(ab.getRequestBuffers(), endpoint, new RequestHandler());
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = new Request(this);
  _response = new Response(this);
  _generator = newHttpGenerator(ab.getResponseBuffers(), endpoint);
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

public AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server)
{
  super(endpoint);
  _uri = StringUtil.__UTF8.equals(URIUtil.__CHARSET)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  HttpBuffers ab = (HttpBuffers)_connector;
  _parser = newHttpParser(ab.getRequestBuffers(), endpoint, new RequestHandler());
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = new Request(this);
  _response = new Response(this);
  _generator = newHttpGenerator(ab.getResponseBuffers(), endpoint);
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

public AbstractHttpConnection(Connector connector, EndPoint endpoint, Server server)
{
  super(endpoint);
  _uri = StringUtil.__UTF8.equals(URIUtil.__CHARSET)?new HttpURI():new EncodedHttpURI(URIUtil.__CHARSET);
  _connector = connector;
  HttpBuffers ab = (HttpBuffers)_connector;
  _parser = newHttpParser(ab.getRequestBuffers(), endpoint, new RequestHandler());
  _requestFields = new HttpFields();
  _responseFields = new HttpFields();
  _request = new Request(this);
  _response = new Response(this);
  _generator = newHttpGenerator(ab.getResponseBuffers(), endpoint);
  _generator.setSendServerVersion(server.getSendServerVersion());
  _server = server;
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

public HttpChannel(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransport transport)
{
  _connector = connector;
  _configuration = configuration;
  _endPoint = endPoint;
  _transport = transport;
  _state = new HttpChannelState(this);
  _request = new Request(this, newHttpInput(_state));
  _response = new Response(this, newHttpOutput());
  _executor = connector == null ? null : connector.getServer().getThreadPool();
  _requestLog = connector == null ? null : connector.getServer().getRequestLog();
  if (LOG.isDebugEnabled())
    LOG.debug("new {} -> {},{},{}",this,_endPoint,_endPoint.getConnection(),_state);
}

相关文章