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, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, logpublic StatesJson()
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doGet in class HttpServletIOExceptionServletExceptionpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doPost in class HttpServletIOExceptionServletExceptionprotected void works(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
The items in the JSON item use the entities country, state, name.
request - response - IOExceptionServletException