Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap.model.presrules
Enum SubHandlingType

java.lang.Object
  extended by java.lang.Enum<SubHandlingType>
      extended by net.java.sip.communicator.impl.protocol.sip.xcap.model.presrules.SubHandlingType
All Implemented Interfaces:
Serializable, Comparable<SubHandlingType>

public enum SubHandlingType
extends Enum<SubHandlingType>

The Presence Rules sub-handling element. Specifies the subscription authorization decision that the server should make.

Compliant with rfc5025.

Author:
Grigorii Balutsel

Enum Constant Summary
Allow
          This action tells the server to place the subscription into the "active" state.
Block
          This action tells the server to reject the subscription, placing it in the "terminated" state.
Confirm
          This action tells the server to place the subscription in the "pending" state, and await input from the presentity to determine how to proceed.
PoliteBlock
          This action tells the server to place the subscription into the "active" state, and to produce a presence document that indicates that the presentity is unavailable.
 
Method Summary
static SubHandlingType fromString(String value)
          Creates enum from its value.
 String value()
          Gets the value.
static SubHandlingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SubHandlingType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Block

public static final SubHandlingType Block
This action tells the server to reject the subscription, placing it in the "terminated" state.


Confirm

public static final SubHandlingType Confirm
This action tells the server to place the subscription in the "pending" state, and await input from the presentity to determine how to proceed.


PoliteBlock

public static final SubHandlingType PoliteBlock
This action tells the server to place the subscription into the "active" state, and to produce a presence document that indicates that the presentity is unavailable.


Allow

public static final SubHandlingType Allow
This action tells the server to place the subscription into the "active" state.

Method Detail

values

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

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

valueOf

public static SubHandlingType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()
Gets the value.

Returns:
the value

fromString

public static SubHandlingType fromString(String value)
Creates enum from its value.

Parameters:
value - the enum's value.
Returns:
created enum.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.