tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote Request.java
Date Fri, 08 Mar 2002 07:20:31 GMT
I've just started the 3.3.x port of Coyote.  I can manage to set this one,
but who uses it?  The Processor (currently) doesn't look at it (AFAIK).
----- Original Message -----
From: <remm@apache.org>
To: <jakarta-tomcat-connectors-cvs@apache.org>
Sent: Thursday, March 07, 2002 9:15 PM
Subject: cvs commit:
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote Request.java


> remm        02/03/07 21:15:51
>
>   Modified:    coyote/src/java/org/apache/coyote Request.java
>   Log:
>   - Add a secure flag on the request.
>
>   Revision  Changes    Path
>   1.5       +15 -4
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java
>
>   Index: Request.java
>   ===================================================================
>   RCS file:
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Reques
t.java,v
>   retrieving revision 1.4
>   retrieving revision 1.5
>   diff -u -r1.4 -r1.5
>   --- Request.java 31 Jan 2002 18:42:29 -0000 1.4
>   +++ Request.java 8 Mar 2002 05:15:51 -0000 1.5
>   @@ -121,10 +121,13 @@
>        // ----------------------------------------------------- Instance
Variables
>
>
>   -    protected int serverPort;
>   +    protected int serverPort = -1;
>   +    protected MessageBytes serverNameMB = new MessageBytes();
>   +
>        protected String localHost;
>
>        protected MessageBytes schemeMB = new MessageBytes();
>   +    protected boolean secure = false;
>
>        protected MessageBytes methodMB = new MessageBytes();
>        protected MessageBytes unparsedURIMB = new MessageBytes();
>   @@ -166,7 +169,6 @@
>        protected int available = -1;
>        protected MessageBytes contentTypeMB = null;
>        protected String charEncoding = null;
>   -    protected MessageBytes serverNameMB = new MessageBytes();
>        protected Cookies cookies = new Cookies(headers);
>
>
>   @@ -233,14 +235,15 @@
>        public MessageBytes serverName() {
>    return serverNameMB;
>        }
>   -
>   +
>        public int getServerPort() {
>            return serverPort;
>        }
>   -
>   +
>        public void setServerPort(int serverPort ) {
>    this.serverPort=serverPort;
>        }
>   +
>        public MessageBytes remoteAddr() {
>    return remoteAddrMB;
>        }
>   @@ -257,6 +260,13 @@
>    this.localHost = host;
>        }
>
>   +    public boolean isSecure() {
>   +        return secure;
>   +    }
>   +
>   +    public void setSecure(boolean secure) {
>   +        this.secure = secure;
>   +    }
>
>        // -------------------- encoding/type --------------------
>
>   @@ -398,6 +408,7 @@
>
>    // XXX Do we need such defaults ?
>            schemeMB.setString("http");
>   +        secure = false;
>    methodMB.setString("GET");
>            uriMB.setString("/");
>            queryMB.setString("");
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message