org.red5.server.net.rtsp
Enum RTSPCode

java.lang.Object
  extended by java.lang.Enum<RTSPCode>
      extended by org.red5.server.net.rtsp.RTSPCode
All Implemented Interfaces:
Serializable, Comparable<RTSPCode>

public enum RTSPCode
extends Enum<RTSPCode>

RTSP Status codes.

Author:
Matteo Merli (matteo.merli@gmail.com)

Enum Constant Summary
AggregateOperationNotAllowed
           
BadGateway
           
BadRequest
           
ConferenceNotFound
           
Continue
           
Created
           
DestinationUnreachable
           
Forbidden
           
GatewayTimeOut
           
Gone
           
HeaderFieldNotValidForResource
           
InternalServerError
           
InvalidRange
           
LengthRequired
           
LowOnStorageSpace
           
MethodNotAllowed
           
MethodNotValidInThisState
           
MovedPermanently
           
MovedTemporarily
           
MultipleChoices
           
NotAcceptable
           
NotEnoughBandwidth
           
NotFound
           
NotImplemented
           
NotModified
           
OK
           
OnlyAggregateOperationAllowed
           
OptionNotSupported
           
ParameterIsReadOnly
           
ParameterNotUnderstood
           
PaymentRequired
           
PreconditionFailed
           
ProxyAuthenticationRequired
           
RequestEntityTooLarge
           
RequestTimeOut
           
RequestUriTooLarge
           
RTSPVersionNotSupported
           
SeeOther
           
ServiceUnavailable
           
SessionNotFound
           
Unauthorized
           
UnsupportedMediaType
           
UnsupportedTransport
           
UseProxy
           
 
Method Summary
 String description()
           
static RTSPCode fromString(String strCode)
          Try to translare a numeric RTSP status code to the corresponding enum value.
 int value()
           
static RTSPCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RTSPCode[] 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

Continue

public static final RTSPCode Continue

OK

public static final RTSPCode OK

Created

public static final RTSPCode Created

LowOnStorageSpace

public static final RTSPCode LowOnStorageSpace

MultipleChoices

public static final RTSPCode MultipleChoices

MovedPermanently

public static final RTSPCode MovedPermanently

MovedTemporarily

public static final RTSPCode MovedTemporarily

SeeOther

public static final RTSPCode SeeOther

NotModified

public static final RTSPCode NotModified

UseProxy

public static final RTSPCode UseProxy

BadRequest

public static final RTSPCode BadRequest

Unauthorized

public static final RTSPCode Unauthorized

PaymentRequired

public static final RTSPCode PaymentRequired

Forbidden

public static final RTSPCode Forbidden

NotFound

public static final RTSPCode NotFound

MethodNotAllowed

public static final RTSPCode MethodNotAllowed

NotAcceptable

public static final RTSPCode NotAcceptable

ProxyAuthenticationRequired

public static final RTSPCode ProxyAuthenticationRequired

RequestTimeOut

public static final RTSPCode RequestTimeOut

Gone

public static final RTSPCode Gone

LengthRequired

public static final RTSPCode LengthRequired

PreconditionFailed

public static final RTSPCode PreconditionFailed

RequestEntityTooLarge

public static final RTSPCode RequestEntityTooLarge

RequestUriTooLarge

public static final RTSPCode RequestUriTooLarge

UnsupportedMediaType

public static final RTSPCode UnsupportedMediaType

ParameterNotUnderstood

public static final RTSPCode ParameterNotUnderstood

ConferenceNotFound

public static final RTSPCode ConferenceNotFound

NotEnoughBandwidth

public static final RTSPCode NotEnoughBandwidth

SessionNotFound

public static final RTSPCode SessionNotFound

MethodNotValidInThisState

public static final RTSPCode MethodNotValidInThisState

HeaderFieldNotValidForResource

public static final RTSPCode HeaderFieldNotValidForResource

InvalidRange

public static final RTSPCode InvalidRange

ParameterIsReadOnly

public static final RTSPCode ParameterIsReadOnly

AggregateOperationNotAllowed

public static final RTSPCode AggregateOperationNotAllowed

OnlyAggregateOperationAllowed

public static final RTSPCode OnlyAggregateOperationAllowed

UnsupportedTransport

public static final RTSPCode UnsupportedTransport

DestinationUnreachable

public static final RTSPCode DestinationUnreachable

InternalServerError

public static final RTSPCode InternalServerError

NotImplemented

public static final RTSPCode NotImplemented

BadGateway

public static final RTSPCode BadGateway

ServiceUnavailable

public static final RTSPCode ServiceUnavailable

GatewayTimeOut

public static final RTSPCode GatewayTimeOut

RTSPVersionNotSupported

public static final RTSPCode RTSPVersionNotSupported

OptionNotSupported

public static final RTSPCode OptionNotSupported
Method Detail

values

public static RTSPCode[] 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 (RTSPCode c : RTSPCode.values())
    System.out.println(c);

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

valueOf

public static RTSPCode 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 int value()
Returns:
the numeric value of the RTSP code

description

public String description()
Returns:
the human-readable description of the RTSP code

fromString

public static RTSPCode fromString(String strCode)
Try to translare a numeric RTSP status code to the corresponding enum value.

Parameters:
strCode - numeric code (as a string)
Returns:
enum values


Copyright © 2006-2009 The Red5 Project