Package com.caucho.services.server
Class GenericService
java.lang.Object
com.caucho.services.server.GenericService
- All Implemented Interfaces:
Service
Interface for a service, including lifecycle.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Cleanup the service instance.getInitParameter
(String name) Returns the named initialization parameter.Returns the object identifier for the request.javax.servlet.ServletRequest
Returns the servlet request object for the request.Deprecated.Returns the service identifier for the request.javax.servlet.ServletConfig
Returns the servlet context.javax.servlet.ServletContext
Returns the servlet context.void
init()
Initialize the service instance.void
init
(javax.servlet.ServletConfig config) Initialize the service instance.void
Logs a message to the error stream.
-
Field Details
-
config
protected javax.servlet.ServletConfig config
-
-
Constructor Details
-
GenericService
public GenericService()
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException Initialize the service instance. -
init
public void init() throws javax.servlet.ServletExceptionInitialize the service instance.- Throws:
javax.servlet.ServletException
-
getInitParameter
Returns the named initialization parameter. -
getServletConfig
public javax.servlet.ServletConfig getServletConfig()Returns the servlet context. -
getServletContext
public javax.servlet.ServletContext getServletContext()Returns the servlet context. -
log
Logs a message to the error stream. -
getRequest
public javax.servlet.ServletRequest getRequest()Returns the servlet request object for the request. -
getServiceName
Returns the service identifier for the request. -
getServiceId
Deprecated.Returns the service identifier for the request. -
getObjectId
Returns the object identifier for the request. -
destroy
public void destroy()Cleanup the service instance.
-