Class Service
- java.lang.Object
-
- com.opentext.livelink.service.core.Service
-
public abstract class Service extends java.lang.Object
Service is the base class of the Services API. Each service defined in Livelink will be created as a subclass of this class. This class handles reading properties and handling authentication for the subclasses.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
sCoreNameSpace
The XML Namespace for the core of CWS services.
-
Constructor Summary
Constructors Constructor Description Service()
Construct the service.Service(com.opentext.livelink.service.core.IServiceContext serviceContext)
Construct the service with the specified IServiceContext.Service(com.opentext.livelink.service.core.IServiceContext serviceContext, com.opentext.livelink.service.core.IRequestContext requestContext)
Construct the service with the specified IServiceContext and IRequestContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.opentext.livelink.service.core.IRequestContext
getRequestContext()
void
setRequestContext(com.opentext.livelink.service.core.IRequestContext requestContext)
Set the IRequestContext for using this service.void
setServiceContext(com.opentext.livelink.service.core.IServiceContext serviceContext)
Set the IServiceContext for using this service.
-
-
-
Field Detail
-
sCoreNameSpace
public static final java.lang.String sCoreNameSpace
The XML Namespace for the core of CWS services.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Service
public Service()
Construct the service. A default IServiceContext is created using the service.properties file.
-
Service
public Service(com.opentext.livelink.service.core.IServiceContext serviceContext)
Construct the service with the specified IServiceContext.
-
Service
public Service(com.opentext.livelink.service.core.IServiceContext serviceContext, com.opentext.livelink.service.core.IRequestContext requestContext)
Construct the service with the specified IServiceContext and IRequestContext. The IRequestContext is stored on a per thread basis.
-
-
Method Detail
-
setServiceContext
public void setServiceContext(com.opentext.livelink.service.core.IServiceContext serviceContext)
Set the IServiceContext for using this service. The IServiceContext determines the server, port and encoding.- Parameters:
serviceContext
- the IServiceContext that represents the context for calling the service
-
setRequestContext
public void setRequestContext(com.opentext.livelink.service.core.IRequestContext requestContext)
Set the IRequestContext for using this service. The IRequestContext determines the user credentials.- Parameters:
requestContext
- the IRequestContext that represents the request context for calling the service
-
getRequestContext
public com.opentext.livelink.service.core.IRequestContext getRequestContext()
-
-