Package ru.vyarus.guicey.admin.rest
Class AdminRestServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- ru.vyarus.guicey.admin.rest.AdminRestServlet
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class AdminRestServlet extends javax.servlet.http.HttpServletForwards all requests into jersey context.Marks request with custom attribute
ADMIN_PROPERTYto indicate admin rest usage. It may be used later to recognize rest origin. For example,AdminResourceFilteruse it to prevent access to admin resources (annotated withAdminResource) from user context.- Since:
- 04.08.2015
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADMIN_PROPERTYRequest attribute name set with 'true' value to distinguish admin rest from user context rest call.
-
Constructor Summary
Constructors Constructor Description AdminRestServlet(javax.servlet.Servlet restServlet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException- Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
-