nl.surfnet.coin.shindig.servlet
Class StatusPageServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by nl.surfnet.coin.shindig.servlet.StatusPageServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class StatusPageServlet
extends javax.servlet.http.HttpServlet

Author:
steinwelberg
See Also:
Serialized Form

Constructor Summary
StatusPageServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  InputStream executeHttpGet(String url)
          Execute a Http GET
protected  ContextEnvironment getEnvironment()
           
protected  GroupService getGroupService()
          Get the GroupService from the CoinGuiceModule
protected  PersonService getPersonService()
          Get the PersonService from the CoinGuiceModule
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, 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

StatusPageServlet

public StatusPageServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException

getPersonService

protected PersonService getPersonService()
Get the PersonService from the CoinGuiceModule

Returns:
PersonService

getGroupService

protected GroupService getGroupService()
Get the GroupService from the CoinGuiceModule

Returns:
the GroupService

getEnvironment

protected ContextEnvironment getEnvironment()
Returns:
the ConextEnvironment

executeHttpGet

protected InputStream executeHttpGet(String url)
                              throws org.apache.http.client.ClientProtocolException,
                                     IOException
Execute a Http GET

Parameters:
url - the url to call
Returns:
the inputstream
Throws:
org.apache.http.client.ClientProtocolException - in case of Htpp protocol breach
IOException - in case of IO error


Copyright © 2007-2012. All Rights Reserved.