public class AddJobToSchedulerServlet extends HttpServlet implements InterfaceContextAware
Add job service to the scheduler and operations are as follows: 1. Create a trigger 2. Create job 3. Register job and trigger to the specified scheduler
Constructor and Description |
---|
AddJobToSchedulerServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(HttpServletRequest request, HttpServletResponse response)
Service receive and process
|
void |
doPost(HttpServletRequest request, HttpServletResponse response)
Service receive and process
|
void |
setInterfaceContext(InterfaceContext context)
Set the context of the service interface.
|
public void setInterfaceContext(InterfaceContext context)
InterfaceContextAware
Set the context of the service interface.
setInterfaceContext
in interface InterfaceContextAware
context
- the context of the service interface.public void doGet(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
java.io.IOException
ServletException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
java.io.IOException
ServletException