FileDocCategorySizeDatePackage
MessageType.javaAPI DocJMF 2.1.1e1266Mon May 12 12:20:54 BST 2003com.sun.media.rtsp.protocol

MessageType

public class MessageType extends Object

Fields Summary
public static final int
UNKNOWN
public static final int
DESCRIBE
public static final int
ANNOUNCE
public static final int
GET_PARAMETER
public static final int
OPTIONS
public static final int
PAUSE
public static final int
PLAY
public static final int
RECORD
public static final int
REDIRECT
public static final int
SETUP
public static final int
SET_PARAMETER
public static final int
TEARDOWN
public static final int
RESPONSE
private int
type
public String[]
messages
Constructors Summary
public MessageType(String msg)


       
        Debug.println(msg);

        type = UNKNOWN;

        for (int i = 0; i < messages.length; i++) {
            if (msg.equals(messages[i])) {
                type = i + 1;

                break;
            }
        }
    
Methods Summary
public intgetType()

        return type;