org.systinet.wasp.wsrm.feb2005.policy
Class InactivityTimeoutAssertion

java.lang.Object
  extended byorg.systinet.wasp.policy.PolicyElement
      extended byorg.systinet.wasp.policy.PolicyAssertion
          extended byorg.systinet.wasp.wsrm.feb2005.policy.InactivityTimeoutAssertion

public class InactivityTimeoutAssertion
extends PolicyAssertion

This assertion specifies (in milliseconds) a period of inactivity for a Sequence. If during this duration an endpoint has received no application or control messages, the endpoint MAY consider the Sequence to have been terminated due to inactivity.

Component:
WS Reliable Messaging Implementation

Constructor Summary
InactivityTimeoutAssertion(long inactivityTimeout, PolicyUsage usage)
          Creates this assertion with given inactivityTimeout.
InactivityTimeoutAssertion(javax.xml.transform.Source content)
          Loads this assertion from given XML source.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 javax.xml.transform.Source getContent()
          Gets XML content of this assertion.
 long getInactivityTimeout()
          Gets inactivity timeout of this assertion.
 int hashCode()
           
 
Methods inherited from class org.systinet.wasp.policy.PolicyElement
getParentElement, getPreference, getUsage, readStandardAttributes, setParentElement, setPreference, setUsage, writeStandardAttributes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InactivityTimeoutAssertion

public InactivityTimeoutAssertion(javax.xml.transform.Source content)
                           throws PolicyException
Loads this assertion from given XML source.

Parameters:
content - XML source
Throws:
PolicyException - when an error occurs during the assertion loading

InactivityTimeoutAssertion

public InactivityTimeoutAssertion(long inactivityTimeout,
                                  PolicyUsage usage)
Creates this assertion with given inactivityTimeout.

Parameters:
inactivityTimeout - inactivity timeout in milliseconds
usage - PolicyUsage.OBSERVED or PolicyUsage.IGNORED
Method Detail

getInactivityTimeout

public long getInactivityTimeout()
Gets inactivity timeout of this assertion.

Returns:
the inactivity timeout in milliseconds

getContent

public javax.xml.transform.Source getContent()
                                      throws PolicyException
Gets XML content of this assertion.

Specified by:
getContent in class PolicyAssertion
Returns:
the XML content source
Throws:
PolicyException - when an error occurs

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)