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

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

本文整理了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

/**
 * Return the current WorkerThread ID associated with this instance.
 */
public long getWorkerThreadID(){
  return request.getRequestProcessor().getWorkerThreadID();
}

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

public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    RequestInfo info = request.getCoyoteRequest().getRequestProcessor();
    if(info != null) {
      buf.append(info.getWorkerThreadName());
    } else {
      buf.append("-");
    }
  }
}

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

public void registerRequest(Request req, MsgContext ep, int count) {
  if(this.domain != null) {
    try {
      RequestInfo rp=req.getRequestProcessor();
      rp.setGlobalProcessor(global);
      ObjectName roname = new ObjectName
        (getDomain() + ":type=RequestProcessor,worker="+
         getChannelName()+",name=JkRequest" +count);
      ep.setNote(JMXRequestNote, roname);
          
      Registry.getRegistry(null, null).registerComponent( rp, roname, null);
    } catch( Exception ex ) {
      log.warn("Error registering request");
    }
  }
}

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

public void registerRequest(Request req, MsgContext ep, int count) {
if(this.domain != null) {
  try {
  RequestInfo rp=req.getRequestProcessor();
  rp.setGlobalProcessor(global);
  ObjectName roname = new ObjectName
    (getDomain() + ":type=RequestProcessor,worker="+
     getChannelName()+",name=JkRequest" +count);
  ep.setNote(JMXRequestNote, roname);
          
  Registry.getRegistry(null, null).registerComponent( rp, roname, null);
  } catch( Exception ex ) {
  log.warn("Error registering request");
  }
}
}

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

public void registerRequest(Request req, MsgContext ep, int count) {
  if(this.domain != null) {
    try {
      RequestInfo rp=req.getRequestProcessor();
      rp.setGlobalProcessor(global);
      ObjectName roname = new ObjectName
        (getDomain() + ":type=RequestProcessor,worker="+
         getChannelName()+",name=JkRequest" +count);
      ep.setNote(JMXRequestNote, roname);
          
      Registry.getRegistry(null, null).registerComponent( rp, roname, null);
    } catch( Exception ex ) {
      log.warn("Error registering request");
    }
  }
}

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

public void deregister(Http11NioProcessor processor) {
  if (proto.getDomain() != null) {
    synchronized (this) {
      try {
        registerCount.addAndGet(-1);
        if (log.isDebugEnabled()) log.debug("Deregister ["+processor+"] count="+registerCount.get());
        RequestInfo rp = processor.getRequest().getRequestProcessor();
        rp.setGlobalProcessor(null);
        ObjectName rpName = rp.getRpName();
        Registry.getRegistry(null, null).unregisterComponent(rpName);
        rp.setRpName(null);
      } catch (Exception e) {
        log.warn("Error unregistering request", e);
      }
    }
  }
}

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

public void deregister(Http11NioProcessor processor) {
  if (proto.getDomain() != null) {
    synchronized (this) {
      try {
        registerCount.addAndGet(-1);
        if (log.isDebugEnabled()) log.debug("Deregister ["+processor+"] count="+registerCount.get());
        RequestInfo rp = processor.getRequest().getRequestProcessor();
        rp.setGlobalProcessor(null);
        ObjectName rpName = rp.getRpName();
        Registry.getRegistry(null, null).unregisterComponent(rpName);
        rp.setRpName(null);
      } catch (Exception e) {
        log.warn("Error unregistering request", e);
      }
    }
  }
}

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

protected void unregister(AjpProcessor processor) {
  RequestInfo rp = processor.getRequest().getRequestProcessor();
  rp.setGlobalProcessor(null);
  if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
    synchronized (this) {
      try {
        ObjectName rpName = rp.getRpName();
        Registry.getRegistry(null, null).unregisterComponent(rpName);
        rp.setRpName(null);
      } catch (Exception e) {
        CoyoteLogger.AJP_LOGGER.errorUnregisteringRequest(e);
      }
    }
  }
}

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

protected void unregister(Http11Processor processor) {
  RequestInfo rp = processor.getRequest().getRequestProcessor();
  rp.setGlobalProcessor(null);
  if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
    synchronized (this) {
      try {
        ObjectName rpName = rp.getRpName();
        Registry.getRegistry(null, null).unregisterComponent(rpName);
        rp.setRpName(null);
      } catch (Exception e) {
        CoyoteLogger.HTTP_BIO_LOGGER.errorUnregisteringRequest(e);
      }
    }
  }
}

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

protected void unregister(Http11AprProcessor processor) {
  RequestInfo rp = processor.getRequest().getRequestProcessor();
  rp.setGlobalProcessor(null);
  if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
    synchronized (this) {
      try {
        ObjectName rpName = rp.getRpName();
        Registry.getRegistry(null, null).unregisterComponent(rpName);
        rp.setRpName(null);
      } catch (Exception e) {
        CoyoteLogger.HTTP_APR_LOGGER.errorUnregisteringRequest(e);
      }
    }
  }
}

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

protected void unregister(AjpAprProcessor processor) {
  RequestInfo rp = processor.getRequest().getRequestProcessor();
  rp.setGlobalProcessor(null);
  if (org.apache.tomcat.util.Constants.ENABLE_MODELER && proto.getDomain() != null) {
    synchronized (this) {
      try {
        ObjectName rpName = rp.getRpName();
        Registry.getRegistry(null, null).unregisterComponent(rpName);
        rp.setRpName(null);
      } catch (Exception e) {
        CoyoteLogger.AJP_LOGGER.errorUnregisteringRequest(e);
      }
    }
  }
}

相关文章

Request类方法