Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/handler/RequestLogHandler.java @ 848:22a4e93ed20e
remove Container
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 19 Sep 2016 16:38:36 -0600 |
parents | 8e9db0bbf4f9 |
children | ea1768c00d03 |
comparison
equal
deleted
inserted
replaced
847:5dfb10ec0ca5 | 848:22a4e93ed20e |
---|---|
106 catch (Exception e) | 106 catch (Exception e) |
107 { | 107 { |
108 LOG.warn ("",e); | 108 LOG.warn ("",e); |
109 } | 109 } |
110 | 110 |
111 if (getServer()!=null) | |
112 getServer().getContainer().update(this, _requestLog, requestLog, "logimpl",true); | |
113 | |
114 _requestLog = requestLog; | 111 _requestLog = requestLog; |
115 | 112 |
116 //if we're already started, then start our request log | 113 //if we're already started, then start our request log |
117 try | 114 try |
118 { | 115 { |
121 } | 118 } |
122 catch (Exception e) | 119 catch (Exception e) |
123 { | 120 { |
124 throw new RuntimeException (e); | 121 throw new RuntimeException (e); |
125 } | 122 } |
126 } | |
127 | |
128 /* ------------------------------------------------------------ */ | |
129 /* | |
130 * @see org.eclipse.jetty.server.server.handler.HandlerWrapper#setServer(org.eclipse.jetty.server.server.Server) | |
131 */ | |
132 @Override | |
133 public void setServer(Server server) | |
134 { | |
135 if (_requestLog!=null) | |
136 { | |
137 if (getServer()!=null && getServer()!=server) | |
138 getServer().getContainer().update(this, _requestLog, null, "logimpl",true); | |
139 super.setServer(server); | |
140 if (server!=null && server!=getServer()) | |
141 server.getContainer().update(this, null,_requestLog, "logimpl",true); | |
142 } | |
143 else | |
144 super.setServer(server); | |
145 } | 123 } |
146 | 124 |
147 /* ------------------------------------------------------------ */ | 125 /* ------------------------------------------------------------ */ |
148 public RequestLog getRequestLog() | 126 public RequestLog getRequestLog() |
149 { | 127 { |