public class ServiceImpl extends Object implements Service
Service.TransportGuarantee| Constructor and Description |
|---|
ServiceImpl() |
| 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.
|
public String getPath()
Servicepublic void setPath(String path)
ServiceThe 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/".
public javax.servlet.Servlet getServlet()
ServicegetServlet in interface Servicepublic void setServlet(javax.servlet.Servlet servlet)
ServicesetServlet in interface Serviceservlet - the Servlet.public Map<String,String> getInitParameters()
ServicegetInitParameters in interface Servicenull if no
initial configuration is set.public void setInitParameters(Map<String,String> params)
ServiceServletConfig.setInitParameters in interface Serviceparams - the parameters.public Service.TransportGuarantee getTransportGuarantee()
ServicegetTransportGuarantee in interface Servicepublic void setTransportGuarantee(Service.TransportGuarantee guarantee)
ServicesetTransportGuarantee in interface ServiceCopyright © 2022. All rights reserved.