001: /*
002: * $Id: Response.java,v 1.4 2005/11/30 11:27:22 ss150821 Exp $
003: * $Source: /m/portal/ps/srap/src/com/sun/portal/rproxy/connectionhandler/Response.java,v $
004: * $Log: Response.java,v $
005: * Revision 1.4 2005/11/30 11:27:22 ss150821
006: * 6356996 - Srap Code base needs to save files in the unix file format and not windows
007: *
008: * Revision 1.3 2005/02/24 07:36:45 ss150821
009: * RFE 6223490 - SRA Should use JDK based logging
010: *
011: * Revision 1.2 2005/02/23 09:15:07 ss150821
012: * RFE 6223490 - SRA Should use JDK based logging
013: *
014: * Revision 1.1 2002/06/14 09:53:54 rt130506
015: * SRAP rebranding
016: *
017: * Revision 1.6 2002/06/12 07:55:58 bv131302
018: * more rebranding - filenames
019: *
020: * Revision 1.5 2002/06/11 16:02:04 bv131302
021: * new branded
022: *
023: * Revision 1.4 2002/06/02 09:52:47 ss133690
024: * CRT 1281 Bug 4618920 Option to make Gateway PDC work with other authentication mechanism (Authentication chain)
025: *
026: * Revision 1.3 2002/05/31 11:41:39 ss133690
027: * CRT 1269 Bug 4618938 Option to disable browser caching
028: *
029: * Revision 1.2 2002/03/20 04:35:24 mm132998
030: * Bug ID # 4655269 CRT : # 602 Desc : Support for HTTP persistent connection at gateway
031: *
032: *
033: */
034: /*
035: * Response.java
036: *
037: * $Author: ss150821 $
038: *
039: * $Date: 2005/11/30 11:27:22 $ $Revision: 1.4 $
040: *
041: * Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
042: *
043: * Developed by SunPS and SunIR
044: */
045:
046: package com.sun.portal.rproxy.connectionhandler;
047:
048: import java.io.BufferedInputStream;
049:
050: /**
051: * This represents a single response.
052: *
053: * @author Gabriel Lawrence
054: */
055: // JP_Declaration Response 201
056: public interface Response {
057: // JP_Operation getHTTPVersion() 147
058: public String getResponseHeader(String s);
059:
060: // JP_Operation getStatusCode() 146
061: public String getStatusCode();
062:
063: // JP_Operation getStatusText() 145
064: public String getStatusText();
065:
066: // JP_Operation getContentType() 144
067: public String getContentType();
068:
069: // JP_Operation getContentEncoding() 143
070: public String getContentEncoding();
071:
072: // JP_Operation getHeaderBytes() 141
073: public byte[] getHeaderBytes();
074:
075: // JP_Operation getContentStream() 491
076: public BufferedInputStream getContentStream();
077:
078: public void setContentLength(int i);
079:
080: public void setConnectionClose();
081:
082: // Lihue - keepAlive
083: public void setConnectionAlive(String token);
084:
085: // End of Code : Lihue - keepAlive
086:
087: public void setLocation(String location);
088:
089: public void setStatusText(String st);
090:
091: public void setSocket(CachedSocket sock);
092:
093: public void closeSocket();
094:
095: /**
096: * Bug 4618938 When "gateway.allow.client.caching" is set to false in
097: * Platform.conf the client cache will be disabled.
098: */
099: public void setClientCaching();
100:
101: // End of change of code for the bug 4618938
102:
103: /*
104: * PRD 3.7 (4338513) Authentication chaining will work with Certificate
105: * authentication.
106: */
107: public void setResponseHeader(String header, String value);
108: // End of code change for PRD 3.7
109:
110: }
|