org.sonar.server.plugins
Class StaticResourcesServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.sonar.server.plugins.StaticResourcesServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class StaticResourcesServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Constructor Summary
StaticResourcesServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  String getPluginKey(javax.servlet.http.HttpServletRequest request)
           
protected  String getPluginKeyAndResourcePath(javax.servlet.http.HttpServletRequest request)
           
protected  String getResourcePath(javax.servlet.http.HttpServletRequest request)
          Note that returned value should not have a leading "/" - see Class.resolveName(String).
 
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

StaticResourcesServlet

public StaticResourcesServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

getPluginKeyAndResourcePath

protected String getPluginKeyAndResourcePath(javax.servlet.http.HttpServletRequest request)
Returns:
part of request URL after servlet path

getPluginKey

protected String getPluginKey(javax.servlet.http.HttpServletRequest request)

getResourcePath

protected String getResourcePath(javax.servlet.http.HttpServletRequest request)
Note that returned value should not have a leading "/" - see Class.resolveName(String).



Copyright © 2009-2012 SonarSource. All Rights Reserved.