jnetpcap.capture
Enum RemoteSession.RemoteService

java.lang.Object
  extended by java.lang.Enum<RemoteSession.RemoteService>
      extended by jnetpcap.capture.RemoteSession.RemoteService
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RemoteSession.RemoteService>
Enclosing interface:
RemoteSession

public static enum RemoteSession.RemoteService
extends java.lang.Enum<RemoteSession.RemoteService>

Lists all the avaiable remote services that can be opened, changed, enabled and disabled.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
EnableServices
          Allows clients to enable and disable services on this server.
GetServerStatistics
          Allows clients to retrieve server's internal statistics.
ListFiles
          Allows clients to list files and directories.
ListNetworkInterfaces
          Allows clients to list network interfaces this system has.
OpenFileReadOnly
          Allows clients to open file for read only.
OpenFileReadWrite
          Allows clients to open file for read and write.
OpenNonPromiscMode
          Allows clients to open live captures in none promiscous mode only.
OpenPromiscMode
          Allows clients to open live captures in promiscous mode.
 
Method Summary
static RemoteSession.RemoteService valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RemoteSession.RemoteService[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OpenNonPromiscMode

public static final RemoteSession.RemoteService OpenNonPromiscMode
Allows clients to open live captures in none promiscous mode only.


OpenPromiscMode

public static final RemoteSession.RemoteService OpenPromiscMode
Allows clients to open live captures in promiscous mode.


OpenFileReadOnly

public static final RemoteSession.RemoteService OpenFileReadOnly
Allows clients to open file for read only. No write is allowed.


OpenFileReadWrite

public static final RemoteSession.RemoteService OpenFileReadWrite
Allows clients to open file for read and write.


ListNetworkInterfaces

public static final RemoteSession.RemoteService ListNetworkInterfaces
Allows clients to list network interfaces this system has.


ListFiles

public static final RemoteSession.RemoteService ListFiles
Allows clients to list files and directories.


EnableServices

public static final RemoteSession.RemoteService EnableServices
Allows clients to enable and disable services on this server.


GetServerStatistics

public static final RemoteSession.RemoteService GetServerStatistics
Allows clients to retrieve server's internal statistics.

Method Detail

values

public static final RemoteSession.RemoteService[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(RemoteSession.RemoteService c : RemoteSession.RemoteService.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static RemoteSession.RemoteService valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name