Agent System POND 1.0 (1.7.2000)

PkgAgentSystem
Class AMPStreamHandlerFactory

java.lang.Object
  |
  +--PkgAgentSystem.AMPStreamHandlerFactory

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
(package private) 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

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.0 (1.7.2000)

Submit a bug

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