JXTA

net.jxta.impl.peergroup
Class StdPeerGroupParamAdv

java.lang.Object
  extended by net.jxta.impl.peergroup.StdPeerGroupParamAdv

Deprecated. This internal class will eventually be removed. It has several problems which make it difficult to support. (The most obvious that it provides poor abstraction and provides references to its' own internal data structures). This class is expected to be replaced by a public API class performing a similar function though such an alternative is not yet available. You are encouraged to copy this code into your own application or service if if you depend upon it.

@Deprecated
public class StdPeerGroupParamAdv
extends Object

Not actually an advertisement, but often acts as part of one.


Constructor Summary
StdPeerGroupParamAdv()
          Deprecated. Private constructor for new instances.
StdPeerGroupParamAdv(Element root)
          Deprecated. Private constructor for serialized instances.
StdPeerGroupParamAdv(XMLElement doc)
          Deprecated. Private constructor for xml serialized instances.
 
Method Summary
 void addApp(ModuleClassID mcid, Object module)
          Deprecated. Add an application to the set of application entries described in this Advertisement.
 void addProto(ModuleClassID mcid, Object module)
          Deprecated. Add a protocol (message transport) to the set of protocol entries described in this Advertisement.
 void addService(ModuleClassID mcid, Object module)
          Deprecated. Add a service to the set of services entries described in this Advertisement.
 Map<ModuleClassID,Object> getApps()
          Deprecated. Return the application entries described in this Advertisement.
 Document getDocument(MimeMediaType encodeAs)
          Deprecated. 
 Map<ModuleClassID,Object> getProtos()
          Deprecated. Return the protocols (message transports) entries described in this Advertisement.
 Map<ModuleClassID,Object> getServices()
          Deprecated. Return the services entries described in this Advertisement.
 void setApps(Map<ModuleClassID,Object> appsTable)
          Deprecated. Replaces the table of applications described by this Advertisement.
 void setProtos(Map<ModuleClassID,Object> protosTable)
          Deprecated. Replaces the table of protocols described by this Advertisement.
 void setServices(Map<ModuleClassID,Object> servicesTable)
          Deprecated. Replaces the table of services described by this Advertisement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdPeerGroupParamAdv

public StdPeerGroupParamAdv()
Deprecated. 
Private constructor for new instances.


StdPeerGroupParamAdv

public StdPeerGroupParamAdv(Element root)
Deprecated. 
Private constructor for serialized instances.

Parameters:
root - the root element

StdPeerGroupParamAdv

public StdPeerGroupParamAdv(XMLElement doc)
Deprecated. 
Private constructor for xml serialized instances.

Parameters:
doc - The XML serialization of the advertisement.
Method Detail

addService

public void addService(ModuleClassID mcid,
                       Object module)
Deprecated. 
Add a service to the set of services entries described in this Advertisement.

Parameters:
mcid - The module class id of the module being added.
module - The module being added.

getServices

public Map<ModuleClassID,Object> getServices()
Deprecated. 
Return the services entries described in this Advertisement.

The result (very unwisely) is the internal map of this Advertisement. Modifying it results in changes to this Advertisement. For safety the Map should be copied before being modified.

Returns:
the services entries described in this Advertisement.

addProto

public void addProto(ModuleClassID mcid,
                     Object module)
Deprecated. 
Add a protocol (message transport) to the set of protocol entries described in this Advertisement.

Parameters:
mcid - The module class id of the module being added.
module - The module being added.

getProtos

public Map<ModuleClassID,Object> getProtos()
Deprecated. 
Return the protocols (message transports) entries described in this Advertisement.

The result (very unwisely) is the internal map of this Advertisement. Modifying it results in changes to this Advertisement. For safety the Map should be copied before being modified.

Returns:
the protocols (message transports) entries described in this Advertisement.

addApp

public void addApp(ModuleClassID mcid,
                   Object module)
Deprecated. 
Add an application to the set of application entries described in this Advertisement.

Parameters:
mcid - The module class id of the module being added.
module - The module being added.

getApps

public Map<ModuleClassID,Object> getApps()
Deprecated. 
Return the application entries described in this Advertisement.

The result (very unwisely) is the internal map of this Advertisement. Modifying it results in changes to this Advertisement. For safety the Map should be copied before being modified.

Returns:
the application entries described in this Advertisement.

setServices

public void setServices(Map<ModuleClassID,Object> servicesTable)
Deprecated. 
Replaces the table of services described by this Advertisement. All existing entries are lost.

Parameters:
servicesTable - the services table

setProtos

public void setProtos(Map<ModuleClassID,Object> protosTable)
Deprecated. 
Replaces the table of protocols described by this Advertisement. All existing entries are lost.

Parameters:
protosTable - The message transport descriptors for the group.

setApps

public void setApps(Map<ModuleClassID,Object> appsTable)
Deprecated. 
Replaces the table of applications described by this Advertisement. All existing entries are lost.

Parameters:
appsTable - The application descriptors for the group.

getDocument

public Document getDocument(MimeMediaType encodeAs)
Deprecated. 


JXSE