|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.context.AbstractContext org.apache.axis2.context.ServiceContext
public class ServiceContext
Well this is never clearly defined, what it does or the life-cycle. So do NOT use this as it might not live up to your expectation.
Field Summary | |
---|---|
static java.lang.String |
SERVICE_OBJECT
|
Fields inherited from class org.apache.axis2.context.AbstractContext |
---|
COPY_PROPERTIES, lastTouchedTime, parent, properties |
Constructor Summary | |
---|---|
ServiceContext()
Public constructor (only here because this class is Externalizable) |
Method Summary | |
---|---|
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()
|
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()
|
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()
|
boolean |
isEquivalent(ServiceContext ctx)
Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent. |
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. |
Methods inherited from class org.apache.axis2.context.AbstractContext |
---|
clearPropertyDifferences, flush, getLastTouchedTime, getLocalProperty, getParent, getProperties, getProperty, getPropertyDifferences, getPropertyNames, getPropertyNonReplicable, isAncestor, mergeProperties, removeProperty, removePropertyNonReplicable, setLastTouchedTime, setNonReplicableProperty, setParent, setProperties, setProperty, touch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICE_OBJECT
Constructor Detail |
---|
public ServiceContext()
Method Detail |
---|
public OperationContext createOperationContext(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 transport
AxisFault
public EndpointReference getTargetEPR()
public void setTargetEPR(EndpointReference targetEPR)
public EndpointReference getMyEPR()
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.Externalizable
out
- The stream to write the object contents to
java.io.IOException
public void readExternal(java.io.ObjectInput inObject) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The stream to read the object contents from
java.io.IOException
java.lang.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 boolean isEquivalent(ServiceContext ctx)
ctx
-
public java.lang.String getLogCorrelationIDString()
public ConfigurationContext getRootContext()
getRootContext
in class AbstractContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |