Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/Connector.java @ 904:5d9b213aaed0
remove unused fns
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 07 Oct 2016 00:28:38 -0600 |
| parents | 94f5d8a62385 |
| children | e7175965e6cf |
comparison
equal
deleted
inserted
replaced
| 903:94f5d8a62385 | 904:5d9b213aaed0 |
|---|---|
| 299 | 299 |
| 300 public void customize(EndPoint endpoint, Request request) throws IOException | 300 public void customize(EndPoint endpoint, Request request) throws IOException |
| 301 { | 301 { |
| 302 } | 302 } |
| 303 | 303 |
| 304 /* ------------------------------------------------------------ */ | |
| 305 protected String getLeftMostFieldValue(HttpFields fields, String header) | |
| 306 { | |
| 307 if (header == null) | |
| 308 return null; | |
| 309 | |
| 310 String headerValue = fields.getStringField(header); | |
| 311 | |
| 312 if (headerValue == null) | |
| 313 return null; | |
| 314 | |
| 315 int commaIndex = headerValue.indexOf(','); | |
| 316 | |
| 317 if (commaIndex == -1) | |
| 318 { | |
| 319 // Single value | |
| 320 return headerValue; | |
| 321 } | |
| 322 | |
| 323 // The left-most value is the farthest downstream client | |
| 324 return headerValue.substring(0,commaIndex); | |
| 325 } | |
| 326 | |
| 327 /* ------------------------------------------------------------ */ | |
| 328 public void persist(EndPoint endpoint) throws IOException | 304 public void persist(EndPoint endpoint) throws IOException |
| 329 { | 305 { |
| 330 } | 306 } |
| 331 | 307 |
| 332 /* ------------------------------------------------------------ */ | 308 /* ------------------------------------------------------------ */ |
| 519 public final boolean isLowResources() | 495 public final boolean isLowResources() |
| 520 { | 496 { |
| 521 return server.isLowOnThreads(); | 497 return server.isLowOnThreads(); |
| 522 } | 498 } |
| 523 | 499 |
| 524 /* ------------------------------------------------------------ */ | |
| 525 private void updateNotEqual(AtomicLong valueHolder, long compare, long value) | |
| 526 { | |
| 527 long oldValue = valueHolder.get(); | |
| 528 while (compare != oldValue) | |
| 529 { | |
| 530 if (valueHolder.compareAndSet(oldValue,value)) | |
| 531 break; | |
| 532 oldValue = valueHolder.get(); | |
| 533 } | |
| 534 } | |
| 535 | |
| 536 // from old interface | 500 // from old interface |
| 537 public abstract void open() throws IOException; | 501 public abstract void open() throws IOException; |
| 538 public abstract void close() throws IOException; | 502 public abstract void close() throws IOException; |
| 539 public abstract int getLocalPort(); | 503 public abstract int getLocalPort(); |
| 540 public abstract Object getConnection(); | 504 public abstract Object getConnection(); |
