001: /*
002: * Request.java
003: * $Author: ss150821 $
004: * $Date: 2005/11/30 11:27:22 $ $Revision: 1.11 $
005: * Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
006: * Developed by SunPS and SunIR
007: */
008:
009: package com.sun.portal.rproxy.connectionhandler;
010:
011: import java.io.BufferedInputStream;
012:
013: /**
014: * This class represents a single request.
015: *
016: * @author Gabriel Lawrence
017: */
018: public interface Request {
019: public void setHost(String host);
020:
021: public void setPort(String port);
022:
023: public void setProtocol(String protocol);
024:
025: public void setObject(String object);
026:
027: // PDC Fix to support IS 6.1
028: public void setURL(String url);
029:
030: // nag
031: // public void setBase( String originalBase, OldHTMLTranslator translator );
032:
033: public String getProtocol();
034:
035: public String getHost();
036:
037: public String getPort();
038:
039: // nag
040: // public String getBaseHref();
041:
042: // public String getBaseObj();
043:
044: // public String getBaseUrlWithoutObj();
045:
046: public String getGatewayScheme();
047:
048: public String getGatewayHost();
049:
050: public String getGatewayURL();
051:
052: public int getGatewayPort();
053:
054: public String getGatewayProtocol();
055:
056: public String getProtocolFromCustomUrl(String knownProtocol);
057:
058: public String getPortFromCustomUrl(String knownPort);
059:
060: public boolean isGatewayProtocolSecure();
061:
062: public void setGatewayHost(String gwhost);
063:
064: public String getProxyHost();
065:
066: public int getProxyPort();
067:
068: public String getSessionID();
069:
070: public boolean getUseProxy();
071:
072: public String getObject();
073:
074: public String getURL();
075:
076: public String getURI();
077:
078: public int getSize();
079:
080: public void addSize(int size);
081:
082: public byte[] getRequestHeaderBytes();
083:
084: public void setRequestHeader(String header, String value);
085:
086: public String getRequestHeader(String header);
087:
088: public BufferedInputStream getContentStream();
089:
090: public void setArchiveTranslate(boolean t);
091:
092: public boolean getArchiveTranslate();
093:
094: public void setGatewayURL(String url);
095:
096: public boolean isCookieSupported();
097:
098: public void setSessionValue(String value);
099:
100: }// interface Request.java
|