182ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyanpackage javax.sip.message;
282ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan
382ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyanimport java.text.ParseException;
482ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan
582ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyanpublic interface Response extends Message {
682ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int TRYING = 100;
782ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int RINGING = 180;
882ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int CALL_IS_BEING_FORWARDED = 181;
982ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int QUEUED = 182;
1082ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int SESSION_PROGRESS = 183;
1182ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int OK = 200;
1282ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int ACCEPTED = 202;
1382ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int MULTIPLE_CHOICES = 300;
1482ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int MOVED_PERMANENTLY = 301;
1582ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int MOVED_TEMPORARILY = 302;
1682ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int USE_PROXY = 305;
1782ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int ALTERNATIVE_SERVICE = 380;
1882ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int BAD_REQUEST = 400;
1982ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int UNAUTHORIZED = 401;
2082ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int PAYMENT_REQUIRED = 402;
2182ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int FORBIDDEN = 403;
2282ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int NOT_FOUND = 404;
2382ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int METHOD_NOT_ALLOWED = 405;
2482ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int NOT_ACCEPTABLE = 406;
2582ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int PROXY_AUTHENTICATION_REQUIRED = 407;
2682ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int REQUEST_TIMEOUT = 408;
2782ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int GONE = 410;
2882ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int CONDITIONAL_REQUEST_FAILED = 412;
2982ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int REQUEST_ENTITY_TOO_LARGE = 413;
3082ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int REQUEST_URI_TOO_LONG = 414;
3182ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int UNSUPPORTED_MEDIA_TYPE = 415;
3282ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int UNSUPPORTED_URI_SCHEME = 416;
3382ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int BAD_EXTENSION = 420;
3482ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int EXTENSION_REQUIRED = 421;
3582ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int INTERVAL_TOO_BRIEF = 423;
3682ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int TEMPORARILY_UNAVAILABLE = 480;
3782ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int CALL_OR_TRANSACTION_DOES_NOT_EXIST = 481;
3882ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int LOOP_DETECTED = 482;
3982ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int TOO_MANY_HOPS = 483;
4082ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int ADDRESS_INCOMPLETE = 484;
4182ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int AMBIGUOUS = 485;
4282ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int BUSY_HERE = 486;
4382ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int REQUEST_TERMINATED = 487;
4482ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int NOT_ACCEPTABLE_HERE = 488;
4582ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int BAD_EVENT = 489;
4682ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int REQUEST_PENDING = 491;
4782ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int UNDECIPHERABLE = 493;
4882ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int SERVER_INTERNAL_ERROR = 500;
4982ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int NOT_IMPLEMENTED = 501;
5082ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int BAD_GATEWAY = 502;
5182ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int SERVICE_UNAVAILABLE = 503;
5282ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int SERVER_TIMEOUT = 504;
5382ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int VERSION_NOT_SUPPORTED = 505;
5482ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int MESSAGE_TOO_LARGE = 513;
5582ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int BUSY_EVERYWHERE = 600;
5682ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int DECLINE = 603;
5782ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int DOES_NOT_EXIST_ANYWHERE = 604;
5882ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int SESSION_NOT_ACCEPTABLE = 606;
5982ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan
6082ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    int getStatusCode();
6182ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    void setStatusCode(int statusCode) throws ParseException;
6282ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan
6382ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    String getReasonPhrase();
6482ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan    void setReasonPhrase(String reasonPhrase) throws ParseException;
6582ea0633e3a0e2d77feed89f033e1dcf4a656c20Hung-ying Tyan}
66