public interface Service
| Modifier and Type | Interface and Description |
|---|---|
static class |
Service.TransportGuarantee
Restrictions on the type of connection this service.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getInitParameters()
Get the parameters, which which the Servlet will be.
|
String |
getPath()
Get the path under which the service can be accessed.
|
javax.servlet.Servlet |
getServlet()
Get the Servlet that handles this service entry point.
|
Service.TransportGuarantee |
getTransportGuarantee()
Obtain the connection restriction this service places on the container.
|
void |
setInitParameters(Map<String,String> params)
Set the initial configuration of the servlet.
|
void |
setPath(String path)
Set the path under which the service can be accessed.
|
void |
setServlet(javax.servlet.Servlet servlet)
Set a Servlet to handle this service.
|
void |
setTransportGuarantee(Service.TransportGuarantee guarantee)
Specify what connection guarantees this service expects from the
container.
|
String getPath()
void setPath(String path)
The path must follow the standard Servlet spec mapping patterns:
Request paths are tested against the mapping patterns in the standard order:
Note
For backward compatibility all exact patterns are also registered under a
path with a trailing "/". E.g. "/foo/bar/baz" is also registered under
"/foo/bar/baz/".
path - the pathjavax.servlet.Servlet getServlet()
void setServlet(javax.servlet.Servlet servlet)
servlet - the Servlet.Map<String,String> getInitParameters()
null if no
initial configuration is set.void setInitParameters(Map<String,String> params)
ServletConfig.params - the parameters.void setTransportGuarantee(Service.TransportGuarantee guarantee)
guarantee - Service.TransportGuarantee getTransportGuarantee()
Copyright © 2023. All rights reserved.