org.apache.coyote.tomcat3

Class Tomcat3Request


public class Tomcat3Request
extends org.apache.tomcat.core.Request

The Request to connect with Coyote. This class handles the I/O requirements and transferring the request line and Mime headers between Coyote and Tomcat.

Authors:
Bill Barker
Costin Manolache

Constructor Summary

Tomcat3Request()

Method Summary

int
doRead()
Read a single character from the request body.
int
doRead(byte[] b, int off, int len)
Read a chunk from the request body.
String
getAuthType()
Request
getCoyoteRequest()
String
getJvmRoute()
String
getLocalHost()
String
getRemoteUser()
int
getServerPort()
boolean
isSecure()
protected int
readBytes()
Read bytes to the read chunk buffer.
void
recycle()
MessageBytes
remoteAddr()
MessageBytes
remoteHost()
MessageBytes
serverName()
void
setAuthType(String s)
void
setCoyoteRequest(Request cReq)
Attach the Coyote Request to this Request.
void
setJvmRoute(String s)
void
setRemoteUser(String s)
void
setServerPort(int i)

Constructor Details

Tomcat3Request

public Tomcat3Request()

Method Details

doRead

public int doRead()
            throws IOException
Read a single character from the request body.


doRead

public int doRead(byte[] b,
                  int off,
                  int len)
            throws IOException
Read a chunk from the request body.


getAuthType

public String getAuthType()


getCoyoteRequest

public Request getCoyoteRequest()


getJvmRoute

public String getJvmRoute()


getLocalHost

public String getLocalHost()


getRemoteUser

public String getRemoteUser()


getServerPort

public int getServerPort()


isSecure

public boolean isSecure()


readBytes

protected int readBytes()
            throws IOException
Read bytes to the read chunk buffer.


recycle

public void recycle()


remoteAddr

public MessageBytes remoteAddr()


remoteHost

public MessageBytes remoteHost()


serverName

public MessageBytes serverName()


setAuthType

public void setAuthType(String s)


setCoyoteRequest

public void setCoyoteRequest(Request cReq)
Attach the Coyote Request to this Request. This is currently set pre-request to allow copying the request attributes to the Tomcat attributes.


setJvmRoute

public void setJvmRoute(String s)


setRemoteUser

public void setRemoteUser(String s)


setServerPort

public void setServerPort(int i)


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.