本文整理了Java中org.apache.coyote.Request.setAttribute
方法的一些代码示例,展示了Request.setAttribute
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setAttribute
方法的具体详情如下:
包路径:org.apache.coyote.Request
类名称:Request
方法名:setAttribute
暂无
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Get the SSL attribute
*/
private void requestSSLAttr() {
try {
if (sslSupport != null) {
Object sslO = sslSupport.getCipherSuite();
if (sslO != null)
request.setAttribute(org.apache.tomcat.util.net.Constants.CIPHER_SUITE_KEY, sslO);
sslO = sslSupport.getPeerCertificateChain(false);
if (sslO != null)
request.setAttribute(org.apache.tomcat.util.net.Constants.CERTIFICATE_KEY, sslO);
sslO = sslSupport.getKeySize();
if (sslO != null)
request.setAttribute(org.apache.tomcat.util.net.Constants.KEY_SIZE_KEY, sslO);
sslO = sslSupport.getSessionId();
if (sslO != null)
request.setAttribute(org.apache.tomcat.util.net.Constants.SESSION_ID_KEY, sslO);
}
} catch (Exception e) {
CoyoteLogger.HTTP_LOGGER.errorGettingSslAttributes(e);
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
Object sslO = sslSupport.getCipherSuite();
if (sslO != null) {
request.setAttribute(SSLSupport.CIPHER_SUITE_KEY, sslO);
request.setAttribute(SSLSupport.CERTIFICATE_KEY, sslO);
request.setAttribute (SSLSupport.KEY_SIZE_KEY, sslO);
request.setAttribute(SSLSupport.SESSION_ID_KEY, sslO);
request.setAttribute(SSLSupport.PROTOCOL_VERSION_KEY, sslO);
request.setAttribute(SSLSupport.SESSION_MGR, sslSupport);
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: codefollower/Tomcat-Research
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: org.glassfish.metro/webservices-extra
Object sslO = sslSupport.getCipherSuite();
if (sslO != null)
request.setAttribute
(SSLSupport.CIPHER_SUITE_KEY, sslO);
sslO = sslReadTask.doPeerCertificateChain(false);
if (sslO != null)
request.setAttribute
(SSLSupport.CERTIFICATE_KEY, sslO);
sslO = sslSupport.getKeySize();
if (sslO != null)
request.setAttribute
(SSLSupport.KEY_SIZE_KEY, sslO);
sslO = sslSupport.getSessionId();
if (sslO != null)
request.setAttribute
(SSLSupport.SESSION_ID_KEY, sslO);
Object sslO = sslReadTask.doPeerCertificateChain(true);
if( sslO != null) {
request.setAttribute
(SSLSupport.CERTIFICATE_KEY, sslO);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
return;
request.setAttribute(SSLSupport.CERTIFICATE_KEY, jsseCerts);
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Get the SSL certificate
*/
private void requestSSLCertificate() {
if (sslSupport != null) {
// Consume and buffer the request body, so that it does not
// interfere with the client's handshake messages
if (maxSavePostSize != 0) {
BufferedInputFilter buffredInputFilter = new BufferedInputFilter();
buffredInputFilter.setLimit(maxSavePostSize);
inputBuffer.addActiveFilter(buffredInputFilter);
}
try {
Object sslO = sslSupport.getPeerCertificateChain(true);
if (sslO != null) {
request.setAttribute(org.apache.tomcat.util.net.Constants.CERTIFICATE_KEY, sslO);
}
} catch (Exception e) {
CoyoteLogger.HTTP_LOGGER.errorGettingSslAttributes(e);
}
}
}
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* 1420 */ this.coyoteRequest.setAttribute(name, value);
代码示例来源:origin: tomcat/catalina
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: jboss.web/jbossweb
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: org.jboss.web/jbossweb
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
coyoteRequest.setAttribute(name, value);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
protected final void sslReHandShake() throws IOException {
if (sslSupport != null) {
// Consume and buffer the request body, so that it does not
// interfere with the client's handshake messages
InputFilter[] inputFilters = inputBuffer.getFilters();
((BufferedInputFilter) inputFilters[Constants.BUFFERED_FILTER]).setLimit(
protocol.getMaxSavePostSize());
inputBuffer.addActiveFilter(inputFilters[Constants.BUFFERED_FILTER]);
/*
* Outside the try/catch because we want I/O errors during
* renegotiation to be thrown for the caller to handle since they
* will be fatal to the connection.
*/
socketWrapper.doClientAuth(sslSupport);
try {
/*
* Errors processing the cert chain do not affect the client
* connection so they can be logged and swallowed here.
*/
Object sslO = sslSupport.getPeerCertificateChain();
if (sslO != null) {
request.setAttribute(SSLSupport.CERTIFICATE_KEY, sslO);
}
} catch (IOException ioe) {
log.warn(sm.getString("http11processor.socket.ssl"), ioe);
}
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, t);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, ioe);
request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, socketWrapper.getError());
代码示例来源:origin: codefollower/Tomcat-Research
request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, x);
代码示例来源:origin: codefollower/Tomcat-Research
request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, x);
内容来源于网络,如有侵权,请联系作者删除!