org.apache.cocoon.profiling.profiler
Class ServletProfiler

java.lang.Object
  extended by org.apache.cocoon.profiling.profiler.Profiler<javax.servlet.Servlet>
      extended by org.apache.cocoon.profiling.profiler.ServletProfiler

public class ServletProfiler
extends Profiler<javax.servlet.Servlet>

The profiler for Servlet, which intercepts the service method to add the profiling id information to the HTTP header.


Field Summary
 
Fields inherited from class org.apache.cocoon.profiling.profiler.Profiler
LOG
 
Constructor Summary
  ServletProfiler()
           
protected ServletProfiler(Class<? extends javax.servlet.Servlet> clazz)
           
 
Method Summary
 void beforeService(ProfilingData data, javax.servlet.Servlet component, Object[] args)
           
 String createRelativeUrl(String inputUrl, String profilingId)
           
 String getMountPath()
           
 void setMountPath(String mountPath)
           
 
Methods inherited from class org.apache.cocoon.profiling.profiler.Profiler
after, before, exception, getTargetClass, setProfilingDataManager, setProfilingIdGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletProfiler

public ServletProfiler()

ServletProfiler

protected ServletProfiler(Class<? extends javax.servlet.Servlet> clazz)
Method Detail

beforeService

public final void beforeService(ProfilingData data,
                                javax.servlet.Servlet component,
                                Object[] args)

createRelativeUrl

public String createRelativeUrl(String inputUrl,
                                String profilingId)

getMountPath

public final String getMountPath()

setMountPath

public final void setMountPath(String mountPath)


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.