public class WMSServlet extends HttpServlet implements InterfaceContextAware
WMS Servlet.
This class inherits from HttpServlet, mainly used to receive the HTTP request of WMS service from the client side, and return the HTTP response to the client side.
Constructor and Description |
---|
WMSServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy objects.
|
protected java.util.Map<java.lang.String,java.lang.String> |
getParameters(HttpServletRequest request)
Get the HTTP request parameters of the relevant WMS service.
|
void |
init()
Initialization.
|
void |
service(HttpServletRequest request, HttpServletResponse response)
Responds to client requests.
|
void |
setInterfaceContext(InterfaceContext context)
Set the context of the service interface.
|
public void init() throws ServletException
Initialization.
ServletException
public void setInterfaceContext(InterfaceContext context)
setInterfaceContext
in interface InterfaceContextAware
context
- the context of the service interface.public void destroy()
public void service(HttpServletRequest request, HttpServletResponse response)
request
- the HTTP request information of WMS service from the client side.response
- the server returns the HTTP response result to the client side.protected java.util.Map<java.lang.String,java.lang.String> getParameters(HttpServletRequest request)
request
- the HTTP request information of WMS service from the client side.