com.atlassian.fisheye.plugins.scm.utils
Class SimpleConfigurationServlet<T extends SimpleConfiguration>
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.atlassian.fisheye.plugins.scm.utils.SimpleConfigurationServlet<T>
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public abstract class SimpleConfigurationServlet<T extends SimpleConfiguration>
- extends javax.servlet.http.HttpServlet
A base class for SCM configuration servlets which can treat their configuration objects
as beans with String properties.
- See Also:
- Serialized Form
Method Summary |
protected abstract T |
defaultConfig()
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected abstract java.lang.String |
getProviderPluginModuleKey()
|
protected abstract java.lang.String |
getTemplatePackage()
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, 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 |
SimpleConfigurationServlet
public SimpleConfigurationServlet(com.atlassian.plugin.PluginAccessor pluginAccessor,
FisheyePluginUtilities fisheyePluginUtilities,
VelocityHelper velocityHelper)
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 javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
defaultConfig
protected abstract T defaultConfig()
getProviderPluginModuleKey
protected abstract java.lang.String getProviderPluginModuleKey()
getTemplatePackage
protected abstract java.lang.String getTemplatePackage()