public class GenericService extends java.lang.Object implements Service
Modifier and Type | Field and Description |
---|---|
protected ServletConfig |
config |
Constructor and Description |
---|
GenericService() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Cleanup the service instance.
|
java.lang.String |
getInitParameter(java.lang.String name)
Returns the named initialization parameter.
|
java.lang.String |
getObjectId()
Returns the object identifier for the request.
|
ServletRequest |
getRequest()
Returns the servlet request object for the request.
|
java.lang.String |
getServiceId()
Deprecated.
|
java.lang.String |
getServiceName()
Returns the service identifier for the request.
|
ServletConfig |
getServletConfig()
Returns the servlet context.
|
ServletContext |
getServletContext()
Returns the servlet context.
|
void |
init()
Initialize the service instance.
|
void |
init(ServletConfig config)
Initialize the service instance.
|
void |
log(java.lang.String message)
Logs a message to the error stream.
|
protected ServletConfig config
public void init(ServletConfig config) throws ServletException
init
in interface Service
config
- the configuration for the service.ServletException
public void init() throws ServletException
ServletException
public java.lang.String getInitParameter(java.lang.String name)
public ServletConfig getServletConfig()
public ServletContext getServletContext()
public void log(java.lang.String message)
public ServletRequest getRequest()
public java.lang.String getServiceName()
public java.lang.String getServiceId()
public java.lang.String getObjectId()