Package hirondelle.web4j.util

Examples of hirondelle.web4j.util.Stopwatch.start()


  private static final long MILLISECONDS_PER_DAY = 1000*60*60*24L;
  private static final Logger fLogger = Util.getLogger(ShowDiagnostics.class);
 
  private void placeDiagnosticDataInScope(HttpServletRequest aRequest, HttpServletResponse aResponse) throws DAOException {
    Stopwatch stopwatch = new Stopwatch();
    stopwatch.start();
   
    fLogger.fine("Adding system properties.");
    addToRequest("systemProperties", sortMap(System.getProperties()));
    fLogger.fine("Adding Context init-params.");
    addToRequest("contextInitParams", sortMap(getContextInitParams(aRequest)));
View Full Code Here


    if( ! fHasLoggedBadReqDetectorDetails ) {
      logBadResponseDetectorDetails();
    }
   
    Stopwatch stopwatch = new Stopwatch();
    stopwatch.start();
   
    aChain.doFilter(aRequest, aResponse);
   
    stopwatch.stop();
    addResponseTime(stopwatch.toValue(), aRequest);
View Full Code Here

    String problem = EMPTY_STRING;
    String pageContent = null;
    int statusCode = 0;
    URLConnection connection = null;
    try {
      stopwatch.start();
      URL target = new URL(fTargetURL);
      connection = target.openConnection();
      connection.setConnectTimeout(fTimeout*1000);
      connection.connect();
      statusCode = extractStatusCode(connection);
View Full Code Here

  @Override public final void init(ServletConfig aConfig) throws ServletException {
    super.init(aConfig);
    fConfig = aConfig;
   
    Stopwatch stopwatch = new Stopwatch();
    stopwatch.start();
   
    BuildImpl.init(aConfig); //first load of application-specific classes; configures and begins logging as well
   
    displaySystemProperties();
    displayConfigInfo(aConfig);
View Full Code Here

   {@link TroubleTicket}, log it, and email it to the webmaster address configured in <tt>web.xml</tt>
   </ul>
  */
  protected void processRequest(HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletException, IOException {
    Stopwatch stopwatch = new Stopwatch();
    stopwatch.start();
   
    aRequest.setCharacterEncoding(fCHARACTER_ENCODING);
    aResponse.setCharacterEncoding(fCHARACTER_ENCODING);
   
    addCurrentUriToRequest(aRequest, aResponse);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.