treuhaender
Class TrusteeToSalesMan

java.lang.Object
  |
  +--treuhaender.TrusteeToSalesMan
All Implemented Interfaces:
org.ssonet.net.ConnectionListener

public class TrusteeToSalesMan
extends java.lang.Object
implements org.ssonet.net.ConnectionListener

Diese Klasse stellt auf Seite des Treuhaenders eine Verbindung mit einem Partner (Haendler) her.

Version:
$Id: TrusteeToSalesMan.java,v 1.9 2004/02/12 08:12:41 tk4 Exp $
Author:
lehrprojekt, Thomas Kriegelstein

Field Summary
 
Fields inherited from interface org.ssonet.net.ConnectionListener
FINISHED_STATE, INIT_STATE, MECHANISMS_NEGOTIATION, NOT_STARTED_STATE, RUNNING_STATE, SECURITY_GOAL_NEGOTIATION
 
Constructor Summary
TrusteeToSalesMan(idman.mngt.Context context)
          Konstruktor.
 
Method Summary
 boolean connect()
          Baut die Verbindung auf.
 void connectionStateChanged(org.ssonet.net.SSONETContext context, int currentState)
           
 boolean decideSecurityGoal(int securityGoal, org.ssonet.net.ActionConfiguration ownConfiguration, org.ssonet.net.SSONETContext context)
           
 void disconnect()
          Baut die Verbindung ab.
 void negotiationRequestReceived(org.ssonet.net.SSONETContext context, int negotiationType)
           
 org.w3c.dom.Document perform(org.w3c.dom.Document order)
          Arbeitsmethode, überträgt das Dokument und liefert das Resultat.
 void waitRunning(org.ssonet.net.SSONETContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrusteeToSalesMan

public TrusteeToSalesMan(idman.mngt.Context context)
Konstruktor.

Parameters:
context - Parametersatz für den die Verbindung aufgebaut werden soll.
Method Detail

connectionStateChanged

public void connectionStateChanged(org.ssonet.net.SSONETContext context,
                                   int currentState)
Specified by:
connectionStateChanged in interface org.ssonet.net.ConnectionListener

waitRunning

public void waitRunning(org.ssonet.net.SSONETContext context)

connect

public boolean connect()
Baut die Verbindung auf.

Returns:
true für Erfolg und false, falls ein Fehler auftrat.

disconnect

public void disconnect()
Baut die Verbindung ab.


perform

public org.w3c.dom.Document perform(org.w3c.dom.Document order)
Arbeitsmethode, überträgt das Dokument und liefert das Resultat.

Parameters:
order - Das zu übermittelnde Dokument.
Returns:
org.w3c.Document oder null - das Resultat.

negotiationRequestReceived

public void negotiationRequestReceived(org.ssonet.net.SSONETContext context,
                                       int negotiationType)
Specified by:
negotiationRequestReceived in interface org.ssonet.net.ConnectionListener

decideSecurityGoal

public boolean decideSecurityGoal(int securityGoal,
                                  org.ssonet.net.ActionConfiguration ownConfiguration,
                                  org.ssonet.net.SSONETContext context)
Specified by:
decideSecurityGoal in interface org.ssonet.net.ConnectionListener


Copyright © 2003 DRIM Team. All Rights Reserved.