public class StatesJson extends HttpServlet
Constructor and Description |
---|
StatesJson() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Process request.
|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Process request.
|
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
request
- HTTP request objectresponse
- HTTP response objectServletException
- if problem with servletIOException
- if IO problemspublic void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doPost
in class HttpServlet
request
- HTTP request objectresponse
- HTTP response objectServletException
- if problem with servletIOException
- if IO problemsprotected void works(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
The items in the JSON item use the entities country, state, name.
request
- HTTP request objectresponse
- HTTP response objectIOException
- if io problemsServletException
- if servlet problemsCopyright © 2017. All rights reserved.