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

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

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

Request.getRequestProcessor介绍

暂无

代码示例

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

  1. /**
  2. * Return the current WorkerThread ID associated with this instance.
  3. */
  4. public long getWorkerThreadID(){
  5. return request.getRequestProcessor().getWorkerThreadID();
  6. }

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

  1. public void addElement(StringBuilder buf, Date date, Request request,
  2. Response response, long time) {
  3. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  4. if(info != null) {
  5. buf.append(info.getWorkerThreadName());
  6. } else {
  7. buf.append("-");
  8. }
  9. }
  10. }

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

  1. @Override
  2. public void addElement(StringBuilder buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. public void addElement(StringBuilder buf, Date date, Request request,
  2. Response response, long time) {
  3. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  4. if(info != null) {
  5. buf.append(info.getWorkerThreadName());
  6. } else {
  7. buf.append("-");
  8. }
  9. }
  10. }

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

  1. @Override
  2. public void addElement(StringBuilder buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. @Override
  2. public void addElement(StringBuilder buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. @Override
  2. public void addElement(StringBuilder buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. @Override
  2. public void addElement(StringBuilder buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. @Override
  2. public void addElement(CharArrayWriter buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. @Override
  2. public void addElement(CharArrayWriter buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. @Override
  2. public void addElement(CharArrayWriter buf, Date date, Request request,
  3. Response response, long time) {
  4. RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
  5. if(info != null) {
  6. buf.append(info.getWorkerThreadName());
  7. } else {
  8. buf.append("-");
  9. }
  10. }
  11. }

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

  1. public void registerRequest(Request req, MsgContext ep, int count) {
  2. if(this.domain != null) {
  3. try {
  4. RequestInfo rp=req.getRequestProcessor();
  5. rp.setGlobalProcessor(global);
  6. ObjectName roname = new ObjectName
  7. (getDomain() + ":type=RequestProcessor,worker="+
  8. getChannelName()+",name=JkRequest" +count);
  9. ep.setNote(JMXRequestNote, roname);
  10. Registry.getRegistry(null, null).registerComponent( rp, roname, null);
  11. } catch( Exception ex ) {
  12. log.warn("Error registering request");
  13. }
  14. }
  15. }

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

  1. public void registerRequest(Request req, MsgContext ep, int count) {
  2. if(this.domain != null) {
  3. try {
  4. RequestInfo rp=req.getRequestProcessor();
  5. rp.setGlobalProcessor(global);
  6. ObjectName roname = new ObjectName
  7. (getDomain() + ":type=RequestProcessor,worker="+
  8. getChannelName()+",name=JkRequest" +count);
  9. ep.setNote(JMXRequestNote, roname);
  10. Registry.getRegistry(null, null).registerComponent( rp, roname, null);
  11. } catch( Exception ex ) {
  12. log.warn("Error registering request");
  13. }
  14. }
  15. }

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

  1. public void registerRequest(Request req, MsgContext ep, int count) {
  2. if(this.domain != null) {
  3. try {
  4. RequestInfo rp=req.getRequestProcessor();
  5. rp.setGlobalProcessor(global);
  6. ObjectName roname = new ObjectName
  7. (getDomain() + ":type=RequestProcessor,worker="+
  8. getChannelName()+",name=JkRequest" +count);
  9. ep.setNote(JMXRequestNote, roname);
  10. Registry.getRegistry(null, null).registerComponent( rp, roname, null);
  11. } catch( Exception ex ) {
  12. log.warn("Error registering request");
  13. }
  14. }
  15. }

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

  1. public void deregister(Http11NioProcessor processor) {
  2. if (proto.getDomain() != null) {
  3. synchronized (this) {
  4. try {
  5. registerCount.addAndGet(-1);
  6. if (log.isDebugEnabled()) log.debug("Deregister ["+processor+"] count="+registerCount.get());
  7. RequestInfo rp = processor.getRequest().getRequestProcessor();
  8. rp.setGlobalProcessor(null);
  9. ObjectName rpName = rp.getRpName();
  10. Registry.getRegistry(null, null).unregisterComponent(rpName);
  11. rp.setRpName(null);
  12. } catch (Exception e) {
  13. log.warn("Error unregistering request", e);
  14. }
  15. }
  16. }
  17. }

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

  1. public void deregister(Http11NioProcessor processor) {
  2. if (proto.getDomain() != null) {
  3. synchronized (this) {
  4. try {
  5. registerCount.addAndGet(-1);
  6. if (log.isDebugEnabled()) log.debug("Deregister ["+processor+"] count="+registerCount.get());
  7. RequestInfo rp = processor.getRequest().getRequestProcessor();
  8. rp.setGlobalProcessor(null);
  9. ObjectName rpName = rp.getRpName();
  10. Registry.getRegistry(null, null).unregisterComponent(rpName);
  11. rp.setRpName(null);
  12. } catch (Exception e) {
  13. log.warn("Error unregistering request", e);
  14. }
  15. }
  16. }
  17. }

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

  1. protected void unregister(AjpProcessor processor) {
  2. RequestInfo rp = processor.getRequest().getRequestProcessor();
  3. rp.setGlobalProcessor(null);
  4. if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
  5. synchronized (this) {
  6. try {
  7. ObjectName rpName = rp.getRpName();
  8. Registry.getRegistry(null, null).unregisterComponent(rpName);
  9. rp.setRpName(null);
  10. } catch (Exception e) {
  11. CoyoteLogger.AJP_LOGGER.errorUnregisteringRequest(e);
  12. }
  13. }
  14. }
  15. }

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

  1. protected void unregister(Http11Processor processor) {
  2. RequestInfo rp = processor.getRequest().getRequestProcessor();
  3. rp.setGlobalProcessor(null);
  4. if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
  5. synchronized (this) {
  6. try {
  7. ObjectName rpName = rp.getRpName();
  8. Registry.getRegistry(null, null).unregisterComponent(rpName);
  9. rp.setRpName(null);
  10. } catch (Exception e) {
  11. CoyoteLogger.HTTP_BIO_LOGGER.errorUnregisteringRequest(e);
  12. }
  13. }
  14. }
  15. }

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

  1. protected void unregister(Http11AprProcessor processor) {
  2. RequestInfo rp = processor.getRequest().getRequestProcessor();
  3. rp.setGlobalProcessor(null);
  4. if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
  5. synchronized (this) {
  6. try {
  7. ObjectName rpName = rp.getRpName();
  8. Registry.getRegistry(null, null).unregisterComponent(rpName);
  9. rp.setRpName(null);
  10. } catch (Exception e) {
  11. CoyoteLogger.HTTP_APR_LOGGER.errorUnregisteringRequest(e);
  12. }
  13. }
  14. }
  15. }

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

  1. protected void unregister(AjpAprProcessor processor) {
  2. RequestInfo rp = processor.getRequest().getRequestProcessor();
  3. rp.setGlobalProcessor(null);
  4. if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
  5. synchronized (this) {
  6. try {
  7. ObjectName rpName = rp.getRpName();
  8. Registry.getRegistry(null, null).unregisterComponent(rpName);
  9. rp.setRpName(null);
  10. } catch (Exception e) {
  11. CoyoteLogger.AJP_LOGGER.errorUnregisteringRequest(e);
  12. }
  13. }
  14. }
  15. }

相关文章

Request类方法