public class ServiceContext extends AbstractContext implements Externalizable, SafeSerializable
Modifier and Type | Field and Description |
---|---|
static 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(QName name) |
AxisService |
getAxisService() |
ConfigurationContext |
getConfigurationContext() |
String |
getGroupName()
Returns a name associated with the ServiceGroupContext
associated with this ServiceContext.
|
OperationContext |
getLastOperationContext() |
String |
getLogCorrelationIDString()
Get the ID associated with this object instance.
|
EndpointReference |
getMyEPR(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
|
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(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(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, touch
public static final String SERVICE_OBJECT
public ServiceContext()
public OperationContext createOperationContext(QName name)
public OperationContext createOperationContext(AxisOperation axisOp)
public AxisService getAxisService()
public ConfigurationContext getConfigurationContext()
public ServiceGroupContext getServiceGroupContext()
public EndpointReference getMyEPR(String transport) throws AxisFault
transport
- : Name of the transportAxisFault
public 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 String getName()
public String getGroupName()
public void writeExternal(ObjectOutput o) throws IOException
writeExternal
in interface Externalizable
out
- The stream to write the object contents toIOException
public void readExternal(ObjectInput inObject) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- The stream to read the object contents fromIOException
ClassNotFoundException
public 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 String getLogCorrelationIDString()
public ConfigurationContext getRootContext()
getRootContext
in class AbstractContext
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.