[Webfunds-commits] java/webfunds/sox Server.java ServerFinder.java SOXServerException.java

Ian Grigg iang@cypherpunks.ai
Fri, 6 Apr 2001 18:53:05 -0400 (AST)


iang        01/04/06 18:53:05

  Added:       webfunds/sox Server.java ServerFinder.java
                        SOXServerException.java
  Log:
  These replace the Issuer analogues, and are extensions of them
  (currently) so migration might be easier.

Revision  Changes    Path
1.29      +41 -499   java/webfunds/sox/Server.java




1.1                  java/webfunds/sox/ServerFinder.java

Index: ServerFinder.java
===================================================================
package webfunds.sox;

/**
 * It is an application level decision how to
 * get the Server from the Item.
 * A class for this interface needs to be given to the Account.
 * 
 * In WebFunds this is done via the Contract, which knows where
 * to find the Server.
 */
public interface ServerFinder
    extends IssuerFinder // deprecated name
{
    /**
     * @return a working Server, or null if none found.?
     *
     * @except SOXServerException something screwed up
     * @except SOXLaterException server down, wait a bit
     */
    Server getServer(ItemId id)
        throws SOXServerException, SOXLaterException;
}



1.1                  java/webfunds/sox/SOXServerException.java

Index: SOXServerException.java
===================================================================
/*
 * $Id: SOXServerException.java,v 1.1 2001/04/06 22:53:05 iang Exp $
 *
 * Copyright (c) Systemics Ltd 1995-1999 on behalf of
 * the WebFunds Development Team.  All Rights Reserved.
 */
package webfunds.sox;


/**
 * This exception class is thrown when an Issuer object fails.
 */
public class SOXServerException
    extends SOXIssuerException // SOXException
{

    public SOXServerException(String msg)            { super(UNKNOWN, msg); }
    public SOXServerException(int errno, String msg) { super(errno, msg); }
    public SOXServerException(int errno)             { super(errno, ""); }
}