Agent System POND 1.2 (28.2.2002)

PkgAgentSystem
Class AMPStreamHandlerFactory

java.lang.Object
  |
  +--PkgAgentSystem.AMPStreamHandlerFactory
All Implemented Interfaces:
URLStreamHandlerFactory

public class AMPStreamHandlerFactory
extends Object
implements URLStreamHandlerFactory

Factory for creating AMPStreamHandlers for the amp-protocol. This class implements the interface URLStreamHandlerFactory.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
URL, URLStreamHandler, URLStreamHandlerFactory, AMPStreamHandler

Constructor Summary
AMPStreamHandlerFactory()
           
 
Method Summary
 URLStreamHandler createURLStreamHandler(String protocol)
          Implementation of interface ULRStreamHandlerFactory.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AMPStreamHandlerFactory

public AMPStreamHandlerFactory()
Method Detail

createURLStreamHandler

public URLStreamHandler createURLStreamHandler(String protocol)
Implementation of interface ULRStreamHandlerFactory. Creates a new AMPStreamHandler instance, if the specified protocol equals "amp". If protocol is other, returns null. (Default handler will then be used by the class URL)
Specified by:
createURLStreamHandler in interface URLStreamHandlerFactory
Parameters:
protocol - the protocol (must be "amp", case-insensitive)
Returns:
a AMPLStreamHandler if the protocol equals "amp", otherwise null
See Also:
URLStreamHandler, AMPStreamHandler

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.