FileDocCategorySizeDatePackage
StatusCode.javaAPI DocJMF 2.1.1e5656Mon May 12 12:20:56 BST 2003com.sun.media.rtsp.protocol

StatusCode

public class StatusCode extends Object

Fields Summary
public static final int
CONTINUE
public static final int
OK
public static final int
CREATED
public static final int
LOW_ON_STORAGE_SPACE
public static final int
MULTIPLE_CHOICES
public static final int
MOVED_PERMANENTLY
public static final int
MOVED_TEMPORARILY
public static final int
SEE_OTHER
public static final int
NOT_MODIFIED
public static final int
USE_PROXY
public static final int
BAD_REQUEST
public static final int
UNAUTHORIZED
public static final int
PAYMENT_REQUIRED
public static final int
FORBIDDEN
public static final int
NOT_FOUND
public static final int
METHOD_NOT_ALLOWED
public static final int
NOT_ACCEPTABLE
public static final int
PROXY_AUTHENTICATION_REQUIRED
public static final int
REQUEST_TIMED_OUT
public static final int
GONE
public static final int
LENGTH_REQUIRED
public static final int
PRECONDITION_FAILED
public static final int
REQUEST_ENTITY_TOO_LARGE
public static final int
REQUEST_URI_TOO_LARGE
public static final int
UNSUPPORTED_MEDIA_TYPE
public static final int
PARAMETER_NOT_UNDERSTOOD
public static final int
CONFERENCE_NOT_FOUND
public static final int
NOT_ENOUGH_BANDWIDTH
public static final int
SESSION_NOT_FOUND
public static final int
METHOD_NOT_VALID_IN_THIS_STATE
public static final int
HEADER_FIELD_NOT_VALID
public static final int
INVALID_RANGE
public static final int
PARAMETER_IS_READ_ONLY
public static final int
AGGREGATE_OPERATION_NOT_ALLOWED
public static final int
ONLY_AGGREGATE_OPERATION_ALLOWED
public static final int
UNSUPPORTED_TRANSPORT
public static final int
DESTINATION_UNREACHABLE
public static final int
INTERNAL_SERVER_ERROR
public static final int
NOT_IMPLEMENTED
public static final int
BAD_GATEWAY
public static final int
SERVICE_UNAVAILABLE
public static final int
GATEWAY_TIME_OUT
public static final int
RTSP_VERSION_NOT_SUPPORTED
public static final int
OPTION_NOT_SUPPORTED
private int
code
Constructors Summary
public StatusCode(int code)


       
        this.code = code;
    
Methods Summary
public static java.lang.StringgetStatusText(int code)

	String text;
	
	switch( code) {
            case CONTINUE: text= "Continue"; break;
	    case OK: text= "Ok"; break;
	    case CREATED: text= "Created"; break;
	    case LOW_ON_STORAGE_SPACE: text= "Low on storage space"; break;
	    case MULTIPLE_CHOICES: text= "Multiple choices"; break;
	    case MOVED_PERMANENTLY: text= "Moved permanently"; break;
	    case MOVED_TEMPORARILY: text= "Moved temporarily"; break;
	    case SEE_OTHER: text= "See other"; break;
	    case NOT_MODIFIED: text= "Not modified"; break;
	    case USE_PROXY: text= "Use proxy"; break;
	    case BAD_REQUEST: text= "Bad request"; break;
	    case UNAUTHORIZED: text= "Unauthorized"; break;
	    case PAYMENT_REQUIRED: text= "Payment required"; break;
	    case FORBIDDEN: text= "Forbidden"; break;
	    case NOT_FOUND: text= "Not found"; break;
	    case METHOD_NOT_ALLOWED: text= "Method not allowed"; break;
	    case NOT_ACCEPTABLE: text= "Not acceptable"; break;
	    case PROXY_AUTHENTICATION_REQUIRED: text= "Proxy authentication required"; break;
	    case REQUEST_TIMED_OUT: text= "Request timed out"; break;
	    case GONE: text= "Gone"; break;
	    case LENGTH_REQUIRED: text= "Length required"; break;
	    case PRECONDITION_FAILED: text= "Precondition failed"; break;
	    case REQUEST_ENTITY_TOO_LARGE: text= "Request entity too large"; break;
	    case REQUEST_URI_TOO_LARGE: text= "Request URI too large"; break;
	    case UNSUPPORTED_MEDIA_TYPE: text= "Unsupported media type"; break;
	    case PARAMETER_NOT_UNDERSTOOD: text= "Parameter not understood"; break;
	    case CONFERENCE_NOT_FOUND: text= "Conference not found"; break;
	    case NOT_ENOUGH_BANDWIDTH: text= "Not enough bandwidth"; break;
	    case SESSION_NOT_FOUND: text= "Session not found"; break;
	    case METHOD_NOT_VALID_IN_THIS_STATE: text= "Method not valid in this state"; break;
	    case HEADER_FIELD_NOT_VALID: text= "Header field not valid"; break;
	    case INVALID_RANGE: text= "Invalid range"; break;
	    case PARAMETER_IS_READ_ONLY: text= "Parameter is read only"; break;
	    case AGGREGATE_OPERATION_NOT_ALLOWED: text= "Aggregate operation not allowed"; break;
	    case ONLY_AGGREGATE_OPERATION_ALLOWED: text= "Only aggregate operation allowed"; break;
	    case UNSUPPORTED_TRANSPORT: text= "Unsupported transport"; break;
	    case DESTINATION_UNREACHABLE: text= "Destination unreachable"; break;
	    case INTERNAL_SERVER_ERROR: text= "Internal server error"; break;
	    case NOT_IMPLEMENTED: text= "Not implemented"; break;
	    case BAD_GATEWAY: text= "Bad gateway"; break;
	    case SERVICE_UNAVAILABLE: text= "Service unavailable"; break;
	    case GATEWAY_TIME_OUT: text= "Gateway time-out"; break;
	    case RTSP_VERSION_NOT_SUPPORTED: text= "RTSP version not supported"; break;
	    case OPTION_NOT_SUPPORTED: text= "Option not supported"; break;
	    default: text= "Unknown status code: " + code;
	}

	return text;