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.HttpServlet
A bundle activator that registers the REST documentation servlet.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContextThe OSGI bundle contextstatic final StringThe servlet path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) static Optional<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, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
SERVLET_PATH
The servlet path- See Also:
-
bundleContext
protected org.osgi.framework.BundleContext bundleContextThe OSGI bundle context
-
-
Constructor Details
-
RestDocsServlet
public RestDocsServlet()
-
-
Method Details
-
start
- Throws:
Exception
-
stop
- 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
Try to find the RestService annotation starting atendpointClass.
-