p2ps.imp.discovery
Class DefaultAdvertisementInstantiator
java.lang.Object
p2ps.imp.discovery.DefaultAdvertisementInstantiator
- All Implemented Interfaces:
- AdvertisementInstantiator
- public class DefaultAdvertisementInstantiator
- extends java.lang.Object
- implements AdvertisementInstantiator
A class for instantiating service queries
- Version:
- $Revision: 295 $
- Author:
- Ian Wang
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAdvertisementInstantiator
public DefaultAdvertisementInstantiator()
getType
public java.lang.String getType()
- Specified by:
getType in interface AdvertisementInstantiator
- Returns:
- the type of advertisement instantiated
createAdvertisement
public Advertisement createAdvertisement(Element envelope,
Peer peer)
throws java.io.IOException
- Specified by:
createAdvertisement in interface AdvertisementInstantiator
- Returns:
- a advertisement generated from the specified document
- Throws:
java.io.IOException
newAdvertisement
public Advertisement newAdvertisement(java.lang.String peerid,
java.lang.String advertid)
throws java.io.IOException
- Specified by:
newAdvertisement in interface AdvertisementInstantiator
- Returns:
- a new advertisement instance
- Throws:
java.io.IOException