Package org.opencastproject.runtimeinfo
Class RestDocsServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.opencastproject.runtimeinfo.RestDocsServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class RestDocsServlet extends javax.servlet.http.HttpServletA bundle activator that registers the REST documentation servlet.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContextbundleContextThe OSGI bundle contextstatic StringSERVLET_PATHThe servlet path
-
Constructor Summary
Constructors Constructor Description RestDocsServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)static org.opencastproject.util.data.Option<org.opencastproject.util.doc.rest.RestService>findRestAnnotation(Class<?> endpointClass)Try to find the RestService annotation starting atendpointClass.voidstart(org.osgi.framework.BundleContext bundleContext)voidstop(org.osgi.framework.BundleContext bundleContext)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
SERVLET_PATH
public static final String SERVLET_PATH
The servlet path- See Also:
- Constant Field Values
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext
The OSGI bundle context
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext bundleContext) throws Exception- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext bundleContext) throws Exception- Throws:
Exception
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
findRestAnnotation
public static org.opencastproject.util.data.Option<org.opencastproject.util.doc.rest.RestService> findRestAnnotation(Class<?> endpointClass)
Try to find the RestService annotation starting atendpointClass.
-
-