idman.neg
Class NegotiationResult

java.lang.Object
  |
  +--idman.neg.NegotiationResult

public class NegotiationResult
extends java.lang.Object

Represents the result of a single Negotiation-step.

Since:
18.07.2002
Version:
$Id: NegotiationResult.java,v 1.6 2003/10/06 06:34:40 tk4 Exp $
Author:
Sven Doering

Field Summary
static java.lang.String OK
          ok - continue negotiation
static java.lang.String READY
          ready, demanded data received - end of negotiation
static java.lang.String SRY
          abort, with not reported reason - end of negotiation
static java.lang.String SRY_DU
          data unavailable - end of negotiation
static java.lang.String SRY_PR
          proposal rejected - end of negotiation
 
Method Summary
static org.w3c.dom.Document getResultDocument(idman.neg.NegotiationResult result)
          Returns the result-document (if available).
static java.lang.String getResultStatus(idman.neg.NegotiationResult result)
          Returns the result-String of the negotiation.
static idman.neg.NegotiationResult newNegotiationResult(org.w3c.dom.Document resultdocument, java.lang.String resultstring)
          Returns a NegotiationResult-object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SRY_DU

public static final java.lang.String SRY_DU
data unavailable - end of negotiation

See Also:
Constant Field Values

SRY_PR

public static final java.lang.String SRY_PR
proposal rejected - end of negotiation

See Also:
Constant Field Values

SRY

public static final java.lang.String SRY
abort, with not reported reason - end of negotiation

See Also:
Constant Field Values

OK

public static final java.lang.String OK
ok - continue negotiation

See Also:
Constant Field Values

READY

public static final java.lang.String READY
ready, demanded data received - end of negotiation

See Also:
Constant Field Values
Method Detail

newNegotiationResult

public static idman.neg.NegotiationResult newNegotiationResult(org.w3c.dom.Document resultdocument,
                                                               java.lang.String resultstring)
Returns a NegotiationResult-object.

Parameters:
resultdocument - Document to be sent
resultstring - Status to be sent
Returns:
NegotiationResult result

getResultStatus

public static java.lang.String getResultStatus(idman.neg.NegotiationResult result)
Returns the result-String of the negotiation.

Parameters:
result - NegotiationResult to examine
Returns:
String result-status-string

getResultDocument

public static org.w3c.dom.Document getResultDocument(idman.neg.NegotiationResult result)
Returns the result-document (if available).

Parameters:
result - NegotiationResult to examine
Returns:
Document result-document (maybe null)


Copyright © 2003 DRIM Team. All Rights Reserved.