org.apache.coyote.Request.setAttribute()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(271)

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

Request.setAttribute介绍

暂无

代码示例

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

  1. /**
  2. * Get the SSL attribute
  3. */
  4. private void requestSSLAttr() {
  5. try {
  6. if (sslSupport != null) {
  7. Object sslO = sslSupport.getCipherSuite();
  8. if (sslO != null)
  9. request.setAttribute(org.apache.tomcat.util.net.Constants.CIPHER_SUITE_KEY, sslO);
  10. sslO = sslSupport.getPeerCertificateChain(false);
  11. if (sslO != null)
  12. request.setAttribute(org.apache.tomcat.util.net.Constants.CERTIFICATE_KEY, sslO);
  13. sslO = sslSupport.getKeySize();
  14. if (sslO != null)
  15. request.setAttribute(org.apache.tomcat.util.net.Constants.KEY_SIZE_KEY, sslO);
  16. sslO = sslSupport.getSessionId();
  17. if (sslO != null)
  18. request.setAttribute(org.apache.tomcat.util.net.Constants.SESSION_ID_KEY, sslO);
  19. }
  20. } catch (Exception e) {
  21. CoyoteLogger.HTTP_LOGGER.errorGettingSslAttributes(e);
  22. }
  23. }

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

  1. Object sslO = sslSupport.getCipherSuite();
  2. if (sslO != null) {
  3. request.setAttribute(SSLSupport.CIPHER_SUITE_KEY, sslO);
  4. request.setAttribute(SSLSupport.CERTIFICATE_KEY, sslO);
  5. request.setAttribute (SSLSupport.KEY_SIZE_KEY, sslO);
  6. request.setAttribute(SSLSupport.SESSION_ID_KEY, sslO);
  7. request.setAttribute(SSLSupport.PROTOCOL_VERSION_KEY, sslO);
  8. request.setAttribute(SSLSupport.SESSION_MGR, sslSupport);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

代码示例来源:origin: org.glassfish.metro/webservices-extra

  1. Object sslO = sslSupport.getCipherSuite();
  2. if (sslO != null)
  3. request.setAttribute
  4. (SSLSupport.CIPHER_SUITE_KEY, sslO);
  5. sslO = sslReadTask.doPeerCertificateChain(false);
  6. if (sslO != null)
  7. request.setAttribute
  8. (SSLSupport.CERTIFICATE_KEY, sslO);
  9. sslO = sslSupport.getKeySize();
  10. if (sslO != null)
  11. request.setAttribute
  12. (SSLSupport.KEY_SIZE_KEY, sslO);
  13. sslO = sslSupport.getSessionId();
  14. if (sslO != null)
  15. request.setAttribute
  16. (SSLSupport.SESSION_ID_KEY, sslO);
  17. Object sslO = sslReadTask.doPeerCertificateChain(true);
  18. if( sslO != null) {
  19. request.setAttribute
  20. (SSLSupport.CERTIFICATE_KEY, sslO);

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

  1. return;
  2. request.setAttribute(SSLSupport.CERTIFICATE_KEY, jsseCerts);

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

  1. /**
  2. * Get the SSL certificate
  3. */
  4. private void requestSSLCertificate() {
  5. if (sslSupport != null) {
  6. // Consume and buffer the request body, so that it does not
  7. // interfere with the client's handshake messages
  8. if (maxSavePostSize != 0) {
  9. BufferedInputFilter buffredInputFilter = new BufferedInputFilter();
  10. buffredInputFilter.setLimit(maxSavePostSize);
  11. inputBuffer.addActiveFilter(buffredInputFilter);
  12. }
  13. try {
  14. Object sslO = sslSupport.getPeerCertificateChain(true);
  15. if (sslO != null) {
  16. request.setAttribute(org.apache.tomcat.util.net.Constants.CERTIFICATE_KEY, sslO);
  17. }
  18. } catch (Exception e) {
  19. CoyoteLogger.HTTP_LOGGER.errorGettingSslAttributes(e);
  20. }
  21. }
  22. }

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

  1. /* 1420 */ this.coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. coyoteRequest.setAttribute(name, value);

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

  1. @Override
  2. protected final void sslReHandShake() throws IOException {
  3. if (sslSupport != null) {
  4. // Consume and buffer the request body, so that it does not
  5. // interfere with the client's handshake messages
  6. InputFilter[] inputFilters = inputBuffer.getFilters();
  7. ((BufferedInputFilter) inputFilters[Constants.BUFFERED_FILTER]).setLimit(
  8. protocol.getMaxSavePostSize());
  9. inputBuffer.addActiveFilter(inputFilters[Constants.BUFFERED_FILTER]);
  10. /*
  11. * Outside the try/catch because we want I/O errors during
  12. * renegotiation to be thrown for the caller to handle since they
  13. * will be fatal to the connection.
  14. */
  15. socketWrapper.doClientAuth(sslSupport);
  16. try {
  17. /*
  18. * Errors processing the cert chain do not affect the client
  19. * connection so they can be logged and swallowed here.
  20. */
  21. Object sslO = sslSupport.getPeerCertificateChain();
  22. if (sslO != null) {
  23. request.setAttribute(SSLSupport.CERTIFICATE_KEY, sslO);
  24. }
  25. } catch (IOException ioe) {
  26. log.warn(sm.getString("http11processor.socket.ssl"), ioe);
  27. }
  28. }
  29. }

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

  1. request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, t);

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

  1. request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, ioe);
  2. request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, socketWrapper.getError());

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

  1. request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, x);

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

  1. request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, x);

相关文章

Request类方法