org.apache.catalina.connector.Request.<init>()方法的使用及代码示例

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

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

Request.<init>介绍

[英]Create a new Request object associated with the given Connector.
[中]

代码示例

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 *
 * @return a new Servlet request object
 */
public Request createRequest() {
  return new Request(this);
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 *
 * @return a new Servlet request object
 */
public Request createRequest() {
  return new Request(this);
}

代码示例来源:origin: tomcat/catalina

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

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

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
@Override
public org.apache.catalina.Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return request;
}

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

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

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

/**
 * Create (or allocate) and return a Request object suitable for
 * specifying the contents of a Request to the responsible Container.
 */
public Request createRequest() {
  Request request = new Request();
  request.setConnector(this);
  return (request);
}

代码示例来源:origin: org.glassfish.web/web-glue

@Override
  public void onParsingError(com.sun.grizzly.tcp.Response response) {
    Response res = new Response();
    res.setCoyoteResponse(response);
    WebConnector connector = webContainer.getConnectorMap().get(listener.getName());
    if (connector != null) {
      Request req = new Request();
      req.setCoyoteRequest(response.getRequest());
      req.setConnector(connector);
      try {
        accessLogValve.postInvoke(req, res);
      } catch (IOException ex) {
        _logger.log(Level.SEVERE, "pewebcontainer.accesslog.reconfigure", ex);
      }
    } else {
      _logger.log(Level.SEVERE, "pewebcontainer.accesslog.reconfigure");
    }
  }
});

相关文章

微信公众号

最新文章

更多

Request类方法