|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.common.ArrayElement
com.pcube.apps.engage.common.ListItem
com.pcube.apps.engage.policy.PortListItem
public class PortListItem
An item that is in a port list. A port item has a port number and the transport type (UDP, TCP or both).
TRANSPORT_TYPE_TCP,
TRANSPORT_TYPE_UDP,
TRANSPORT_TYPE_BOTH,
TRANSPORT_TYPE_IP,
Serialized Form| Field Summary | |
|---|---|
static int |
TRANSPORT_TYPE_BOTH
Protocol transport types are both TCP and UDP. |
static int |
TRANSPORT_TYPE_IP
Protocol transport type is IP. |
static int |
TRANSPORT_TYPE_TCP
Protocol transport type is TCP. |
static int |
TRANSPORT_TYPE_UDP
Protocol transport type is UDP. |
| Constructor Summary | |
|---|---|
PortListItem()
PortListItem Constructor. |
|
PortListItem(long port,
int transportType)
PortListItem Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object o)
|
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
long |
getPortNumber()
Gets this PortListItem's port. |
int |
getTransportType()
Gets this PortListItem's transport type. |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TRANSPORT_TYPE_BOTH
public static final int TRANSPORT_TYPE_IP
public static final int TRANSPORT_TYPE_TCP
public static final int TRANSPORT_TYPE_UDP
| Constructor Detail |
|---|
public PortListItem()
public PortListItem(long port,
int transportType)
port - this PortListItem's porttransportType - this PortListItem's transport type| Method Detail |
|---|
public java.lang.Object clone()
clone in class ListItemListItem.clone()public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class ListItemListItem.compareTo(java.lang.Object)
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public long getPortNumber()
public int getTransportType()
TRANSPORT_TYPE_TCP,
TRANSPORT_TYPE_UDP,
TRANSPORT_TYPE_BOTH,
TRANSPORT_TYPE_IP
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)public java.lang.String toString()
toString in class ListItemListItem.toString()
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||