public class ServiceContext extends AbstractContext implements java.io.Externalizable, SafeSerializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERVICE_OBJECT |
COPY_PROPERTIES, lastTouchedTime, parent, properties| Constructor and Description |
|---|
ServiceContext()
Public constructor (only here because this class is Externalizable)
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ConfigurationContext cc)
This method checks to see if additional work needs to be
done in order to complete the object reconstitution.
|
OperationContext |
createOperationContext(AxisOperation axisOp) |
OperationContext |
createOperationContext(javax.xml.namespace.QName name) |
AxisService |
getAxisService() |
ConfigurationContext |
getConfigurationContext() |
java.lang.String |
getGroupName()
Returns a name associated with the ServiceGroupContext
associated with this ServiceContext.
|
OperationContext |
getLastOperationContext() |
java.lang.String |
getLogCorrelationIDString()
Get the ID associated with this object instance.
|
EndpointReference |
getMyEPR(java.lang.String transport)
To get the ERP for a given service , if the transport is present and not
running then it will add as a listener to ListenerManager , there it will
init that and start the listener , and finally ask the EPR from transport
for a given service
|
java.lang.String |
getName()
Returns a name associated with this ServiceContext.
|
ConfigurationContext |
getRootContext() |
ServiceGroupContext |
getServiceGroupContext() |
EndpointReference |
getTargetEPR() |
boolean |
isCachingOperationContext() |
void |
putContextProperties(ServiceContext context,
boolean doParentProperties)
This will do a copy of the properties from this context object
to the properties of the specified context object.
|
void |
readExternal(java.io.ObjectInput inObject)
Restore the contents of the object that was previously saved.
|
void |
setCachingOperationContext(boolean cacheLastOperationContext) |
void |
setLastOperationContext(OperationContext lastOperationContext) |
void |
setMyEPR(EndpointReference myEPR) |
void |
setTargetEPR(EndpointReference targetEPR) |
void |
writeExternal(java.io.ObjectOutput o)
Save the contents of this object.
|
clearPropertyDifferences, flush, getLastTouchedTime, getLocalProperty, getParent, getProperties, getProperty, getPropertyDifferences, getPropertyNames, getPropertyNonReplicable, isAncestor, mergeProperties, removeProperty, removePropertyNonReplicable, setLastTouchedTime, setNonReplicableProperty, setParent, setProperties, setProperty, touchpublic static final java.lang.String SERVICE_OBJECT
public ServiceContext()
public OperationContext createOperationContext(javax.xml.namespace.QName name)
public OperationContext createOperationContext(AxisOperation axisOp)
public AxisService getAxisService()
public ConfigurationContext getConfigurationContext()
public ServiceGroupContext getServiceGroupContext()
public EndpointReference getMyEPR(java.lang.String transport) throws AxisFault
transport - : Name of the transportAxisFaultpublic EndpointReference getTargetEPR()
public void setTargetEPR(EndpointReference targetEPR)
public void setMyEPR(EndpointReference myEPR)
public OperationContext getLastOperationContext()
public void setLastOperationContext(OperationContext lastOperationContext)
public boolean isCachingOperationContext()
public void setCachingOperationContext(boolean cacheLastOperationContext)
public java.lang.String getName()
public java.lang.String getGroupName()
public void writeExternal(java.io.ObjectOutput o)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The stream to write the object contents tojava.io.IOExceptionpublic void readExternal(java.io.ObjectInput inObject)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - The stream to read the object contents fromjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void activate(ConfigurationContext cc)
cc - The configuration context object representing the active configurationpublic void putContextProperties(ServiceContext context, boolean doParentProperties)
context - The ServiceContext object to hold the merged propertiesdoParentProperties - Indicates whether to go up the context hierachy
copy the properties at each levelpublic java.lang.String getLogCorrelationIDString()
public ConfigurationContext getRootContext()
getRootContext in class AbstractContextCopyright © 2004-2018 The Apache Software Foundation. All Rights Reserved.