Package com.draagon.timers

Examples of com.draagon.timers.MethodTimer.done()


              wiireq.getDevice().returnError( wiireq, wiires, "Invalid Site", "The specified external system does not exist in the wii.properties file [" + path + "]" );
              return;
            }
        }

        mt.done();
    }

    protected WIIServletRequest getRequest( HttpServletRequest request, WIIServlet serv )
    {
      return new WIIServletRequest( request, serv );
View Full Code Here


      {
        WIIKernel wii = getKernel();

        MethodTimer mt = new MethodTimer( wii, "serviceExternal" );
        wii.serviceExternal( osreq, osres );
        mt.done();
      }
      catch( WIIException e )
      {
        ex = e;
      }
View Full Code Here

            req.getTemplate().addFooter( res );
          }

          //////////////////////////////////////////////////////////////

          mt.done();
      }
      catch( Exception e )
      {
        req.logError( "Error processing internal request", e );
View Full Code Here

      if ( is.canAccess( req.getUser() ))
      {
        MethodTimer mt = new MethodTimer( is, "service" );
        is.service( req, res );
        mt.done();
      }
      else
      {
        String name = req.getUser().get( WIIUser.WII_USERNAME );
View Full Code Here

        f.processRequestHeaders( req, reqHeaders );

        if ( log.isDebugEnabled() )
          log.debug( "(serviceExternal) Request Header class: " + f.getClass().getName() );
      }
      mt.done();

      // Get the connector module
      connector = req.getWIIConnector();

      if ( log.isDebugEnabled() )
View Full Code Here

      mt = new MethodTimer( connector, "doRequest" ) ;

      is = connector.doRequest( req, reqHeaders );
      req.setExternalInputStream( is );

      mt.done();

      // Get the HTTP response headers
      //mt = new MethodTimer( "com.draagon.wii.WIIKernel.connector.getResponse" );
      mt = new MethodTimer( this, "getResponse" );
      List<NameValuePair> retHeaders = connector.getResponseHeaders();
View Full Code Here

      // Get the HTTP response headers
      //mt = new MethodTimer( "com.draagon.wii.WIIKernel.connector.getResponse" );
      mt = new MethodTimer( this, "getResponse" );
      List<NameValuePair> retHeaders = connector.getResponseHeaders();
      mt.done();

      // Set the default for text/html
      String content = connector.getContentType();
      req.setExternalContentType( content );
      if ( log.isDebugEnabled() )
View Full Code Here

        if ( log.isDebugEnabled() )
          log.debug( "(serviceExternal) Response Header class: " + f.getClass().getName() );

        f.processResponseHeaders( req, res, retHeaders );
      }
      mt.done();

      // Set the response headers
      setHeaders( req, res, retHeaders );

      // Add the header
View Full Code Here

      if ( req.getTemplate() != null )
      {
        MethodTimer mt4 = new MethodTimer( req, "addHeader" );
        req.getTemplate().addHeader( res );
        res.flush();
        mt4.done();
      }

      // Process the data
      processData( req, res );
      // Flush the processed data
View Full Code Here

      {
        // Add the footer
        MethodTimer mt4 = new MethodTimer( req, "addFooter" );
        req.getTemplate().addFooter( res );
        res.flush();
        mt4.done();
      }

      if ( log.isDebugEnabled() )
        log.debug( "(serviceExternal) Closing streams" );
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.