org.ow2.jonas.lib.ejb21
Class Protocols

java.lang.Object
  extended by org.ow2.jonas.lib.ejb21.Protocols

public class Protocols
extends Object

Class used to manage protocol names


Field Summary
static String CMI_RMI
          CMI protocol
static String RMI_IIOP
          IIOP protocol
static String RMI_IRMI
          JRMP protocol
static String RMI_JRMP
          JRMP protocol
 
Constructor Summary
Protocols(String pns)
          Build a new object to check protocols
Protocols(String pns, boolean configure)
           
 
Method Summary
 boolean isSupported(Protocols pns)
          Return true if the given protocol is supported
 boolean isSupported(String pn)
          Return true if the given protocol is supported
 Iterator iterator()
           
 String list()
          Return comma-separated list of protocol names
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RMI_JRMP

public static final String RMI_JRMP
JRMP protocol

See Also:
Constant Field Values

RMI_IRMI

public static final String RMI_IRMI
JRMP protocol

See Also:
Constant Field Values

RMI_IIOP

public static final String RMI_IIOP
IIOP protocol

See Also:
Constant Field Values

CMI_RMI

public static final String CMI_RMI
CMI protocol

See Also:
Constant Field Values
Constructor Detail

Protocols

public Protocols(String pns)
Build a new object to check protocols

Parameters:
pns - names of protocols

Protocols

public Protocols(String pns,
                 boolean configure)
Method Detail

isSupported

public boolean isSupported(String pn)
Return true if the given protocol is supported

Parameters:
pn - protocol name
Returns:
true if the given protocol is supported

isSupported

public boolean isSupported(Protocols pns)
Return true if the given protocol is supported

Parameters:
pns - protocol names
Returns:
true if the given protocol is supported

iterator

public Iterator iterator()

list

public String list()
Return comma-separated list of protocol names


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 OW2 Consortium. All Rights Reserved.