01: /*
02: * $Id: ErrorResponse.java,v 1.6 2005/03/07 06:28:18 np145014 Exp $
03: * $Source: /m/portal/ps/srap/src/com/sun/portal/rproxy/connectionhandler/ErrorResponse.java,v $
04: * $Log: ErrorResponse.java,v $
05: * Revision 1.6 2005/03/07 06:28:18 np145014
06: * CR 6223492 Updated P2 portalserver/erproxy SRA should use the monitoring framework and provide monitoring metadata.
07: *
08: * Revision 1.5 2005/03/01 10:29:24 np145014
09: * CR 6224556
10: *
11: * Revision 1.4 2005/03/01 10:17:23 np145014
12: * CR 6224556
13: *
14: * Revision 1.3 2005/02/24 07:36:44 ss150821
15: * RFE 6223490 - SRA Should use JDK based logging
16: *
17: * Revision 1.2 2005/02/23 09:15:05 ss150821
18: * RFE 6223490 - SRA Should use JDK based logging
19: *
20: * Revision 1.1 2002/06/14 09:53:51 rt130506
21: * SRAP rebranding
22: *
23: * Revision 1.4 2002/06/11 16:02:03 bv131302
24: * new branded
25: *
26: * Revision 1.3 2002/04/10 13:06:15 mm132998
27: * Bug ID : # 4665772 , CRT : # 770 , Desc : Charset Migration to iDSAME.
28: *
29: * Revision 1.2 2002/02/27 13:27:38 mm132998
30: * Bug ID # 4643783 , CRT : 378 , Desc : If connection is denied , the portal must display a customizable error message.
31: *
32: *
33: */
34: /*
35: * ErrorResponse.java
36: *
37: * $Author: np145014 $
38: *
39: * $Date: 2005/03/07 06:28:18 $ $Revision: 1.6 $
40: *
41: * Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
42: *
43: * Developed by SunPS and SunIR
44: */
45:
46: package com.sun.portal.rproxy.connectionhandler;
47:
48: import com.sun.portal.rproxy.monitoring.MonitoringSubsystem;
49: import com.sun.portal.rproxy.monitoring.util.RProxyEvent;
50:
51: /**
52: * This represents a single error response.
53: *
54: * @author Gabriel Lawrence
55: */
56: public class ErrorResponse extends HeaderResponse {
57: // public static final String ERRORMESSAGE="ErrorMessage";
58: private static final String STATUS_CODE = "502";
59:
60: private static final String STATUS_TEXT = "Bad Gateway";
61: {
62: MonitoringSubsystem.handleEvent(RProxyEvent.SERVER_ERROR);
63: }
64:
65: // Lihue PRD : 8.2
66: public ErrorResponse(String message, com.iplanet.sso.SSOToken token) {
67: super (message, STATUS_CODE, STATUS_TEXT, token);
68: }
69:
70: public ErrorResponse(String message, String status_text,
71: com.iplanet.sso.SSOToken token) {
72: super (message, STATUS_CODE, status_text, token);
73: }
74:
75: public ErrorResponse(String message,
76: com.iplanet.sso.SSOToken token, String language) {
77: // super(ERRORMESSAGE, message, STATUS_CODE, STATUS_TEXT, token);
78: super (message, STATUS_CODE, STATUS_TEXT, token, language);
79: }
80:
81: public ErrorResponse(String message, String status_text,
82: com.iplanet.sso.SSOToken token, String language) {
83: // super(ERRORMESSAGE, message, STATUS_CODE, status_text, token);
84: super (message, STATUS_CODE, status_text, token, language);
85: }
86: // EOC : Lihue PRD : 8.2
87: }
|