public class StatesJson extends HttpServlet
Constructor and Description |
---|
StatesJson() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
protected void |
works(HttpServletRequest request,
HttpServletResponse response)
Generate output.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public StatesJson()
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doGet
in class HttpServlet
IOException
ServletException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doPost
in class HttpServlet
IOException
ServletException
protected void works(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
The items in the JSON item use the entities country, state, name.
request
- response
- IOException
ServletException