org.glite.authz.common.http
Class ServiceMetricsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.glite.authz.common.http.BaseHttpServlet
              extended by org.glite.authz.common.http.ServiceMetricsServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServiceMetricsServlet
extends BaseHttpServlet

Service metrics servlet -> /status

See Also:
Serialized Form

Constructor Summary
ServiceMetricsServlet(ServiceMetrics serviceMetrics)
          Constructor
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          
protected  java.lang.String getSupportedMethods()
          Gets the HTTP methods supported by this Servlet.
 
Methods inherited from class org.glite.authz.common.http.BaseHttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace
 
Methods inherited from class javax.servlet.http.HttpServlet
getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceMetricsServlet

public ServiceMetricsServlet(ServiceMetrics serviceMetrics)
Constructor

Parameters:
serviceMetrics - the service metrics to use for the status
Method Detail

getSupportedMethods

protected java.lang.String getSupportedMethods()
Gets the HTTP methods supported by this Servlet. This information is used to populate the HTTP "Allow" header.

Specified by:
getSupportedMethods in class BaseHttpServlet
Returns:
HTTP methods supported by this Servlet

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     java.io.IOException

Overrides:
doGet in class BaseHttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.