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

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

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

Request.getConnector介绍

[英]Return the Connector through which this Request was received.
[中]返回接收此请求的连接器。

代码示例

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

@Override
  public Charset getUriCharset() {
    return request.getConnector().getURICharset();
  }
}

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

public CatalinaRequestAuthenticator(KeycloakDeployment deployment,
                  AdapterTokenStore tokenStore,
                  CatalinaHttpFacade facade,
                  Request request,
                  GenericPrincipalFactory principalFactory) {
  super(facade, deployment, tokenStore, request.getConnector().getRedirectPort());
  this.request = request;
  this.principalFactory = principalFactory;
}

代码示例来源:origin: org.keycloak/keycloak-tomcat-core-adapter

public CatalinaRequestAuthenticator(KeycloakDeployment deployment,
                  AdapterTokenStore tokenStore,
                  CatalinaHttpFacade facade,
                  Request request,
                  GenericPrincipalFactory principalFactory) {
  super(facade, deployment, tokenStore, request.getConnector().getRedirectPort());
  this.request = request;
  this.principalFactory = principalFactory;
}

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

@Override
  public Charset getUriCharset() {
    return request.getConnector().getURICharset();
  }
}

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

public boolean getAllowTrace() {
  return request.getConnector().getAllowTrace();
}

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

public boolean getAllowTrace() {
  return request.getConnector().getAllowTrace();
}

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

public boolean getAllowTrace() {
  return request.getConnector().getAllowTrace();
}

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

@Override
public Object get(Request request, String name) {
  return Boolean.valueOf(
      request.getConnector().getProtocolHandler(
          ).isCometSupported());
}
@Override

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

@Override
public Object get(Request request, String name) {
  return Boolean.valueOf(
      request.getConnector().getProtocolHandler(
          ).isCometTimeoutSupported());
}
@Override

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

@Override
public Object get(Request request, String name) {
  return Boolean.valueOf(
      request.getConnector().getProtocolHandler(
          ).isSendfileSupported());
}
@Override

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

@Override
public void invoke(Request request, Response response) throws IOException, ServletException {
  String property;
  if (getAddConnectorPort()) {
    property = request.getRequest().getRemoteHost() + ";" +
        request.getConnector().getPortWithOffset();
  } else {
    property = request.getRequest().getRemoteHost();
  }
  process(property, request, response);
}

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

@Override
public void invoke(Request request, Response response) throws IOException, ServletException {
  String property;
  if (getAddConnectorPort()) {
    property = request.getRequest().getRemoteAddr() + ";" +
        request.getConnector().getPortWithOffset();
  } else {
    property = request.getRequest().getRemoteAddr();
  }
  process(property, request, response);
}

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

@Override
public Object get(Request request, String name) {
  return Boolean.valueOf(
      request.getConnector().getProtocolHandler(
          ).isSendfileSupported() && request.getCoyoteRequest().getSendfile());
}
@Override

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

@Override
public void invoke(Request request, Response response) throws IOException, ServletException {
  String property;
  if (getAddConnectorPort()) {
    property = request.getRequest().getRemoteAddr() + ";" + request.getConnector().getPort();
  } else {
    property = request.getRequest().getRemoteAddr();
  }
  process(property, request, response);
}

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

@Override
public void invoke(Request request, Response response) throws IOException, ServletException {
  String property;
  if (getAddConnectorPort()) {
    property = request.getRequest().getRemoteHost() + ";" + request.getConnector().getPort();
  } else {
    property = request.getRequest().getRemoteHost();
  }
  process(property, request, response);
}

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

@Override
public Object get(Request request, String name) {
  return Boolean.valueOf(
      request.getConnector().getProtocolHandler(
          ).isSendfileSupported() && request.getCoyoteRequest().getSendfile());
}
@Override

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

/**
 * Clear the collection of parameters associated with this Request
 * and reset the query string encoding charset.
 */
@Override
public void clearParameters() {
  coyoteRequest.getParameters().recycle();
  coyoteRequest.getParameters().setQueryStringEncoding(
      Charsets.lookupCharset(getConnector().getURIEncoding()));
}

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

@Override
public AsyncContext startAsync(ServletRequest request,
    ServletResponse response) {
  if (!isAsyncSupported()) {
    throw new IllegalStateException("Not supported.");
  }
  if (asyncContext == null) {
    asyncContext = new AsyncContextImpl(this);
  }
  asyncContext.setStarted(getContext(), request, response,
      request==getRequest() && response==getResponse().getResponse());
  asyncContext.setTimeout(getConnector().getAsyncTimeout());
  return asyncContext;
}

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

@Override
public AsyncContext startAsync(ServletRequest request,
    ServletResponse response) {
  if (!isAsyncSupported()) {
    throw new IllegalStateException("Not supported.");
  }
  
  if (asyncContext == null) {
    asyncContext = new AsyncContextImpl(this);
  }
  
  asyncContext.setStarted(getContext(), request, response,
      request==getRequest() && response==getResponse().getResponse());
  asyncContext.setTimeout(getConnector().getAsyncTimeout());
  
  return asyncContext;
}

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

@Override
public AsyncContext startAsync(ServletRequest request,
    ServletResponse response) {
  if (!isAsyncSupported()) {
    throw new IllegalStateException("Not supported.");
  }
  
  if (asyncContext == null) {
    asyncContext = new AsyncContextImpl(this);
  }
  
  asyncContext.setStarted(getContext(), request, response,
      request==getRequest() && response==getResponse().getResponse());
  asyncContext.setTimeout(getConnector().getAsyncTimeout());
  
  return asyncContext;
}

相关文章

Request类方法