01: package org.mortbay.jetty.ajp;
02:
03: import org.mortbay.jetty.HttpConnection;
04: import org.mortbay.jetty.Request;
05:
06: public class Ajp13Request extends Request {
07: protected String _remoteAddr;
08: protected String _remoteHost;
09: protected HttpConnection _connection;
10:
11: public Ajp13Request(HttpConnection connection) {
12: super (connection);
13: _remoteAddr = null;
14: _remoteHost = null;
15: }
16:
17: public String getRemoteAddr() {
18: if (_remoteAddr != null)
19: return _remoteAddr;
20: if (_remoteHost != null)
21: return _remoteHost;
22: return super .getRemoteAddr();
23: }
24:
25: public void setRemoteAddr(String remoteAddr) {
26: _remoteAddr = remoteAddr;
27: }
28:
29: public String getRemoteHost() {
30: if (_remoteHost != null)
31: return _remoteHost;
32: if (_remoteAddr != null)
33: return _remoteAddr;
34: return super .getRemoteHost();
35: }
36:
37: public void setRemoteHost(String remoteHost) {
38: _remoteHost = remoteHost;
39: }
40:
41: protected void recycle() {
42: super.recycle();
43: _remoteAddr = null;
44: _remoteHost = null;
45: }
46:
47: }
|