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

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

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

Request.setConnector介绍

[英]Set the Connector through which this Request was received.
[中]

代码示例

代码示例来源:origin: org.glassfish.main.security/websecurity

public void setConnector(Connector connector) {
  httpRequest.setConnector(connector);
}

代码示例来源: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类方法