comparison src/org/eclipse/jetty/server/Connector.java @ 895:49ff91097d6c

remove _hostHeader
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 06 Oct 2016 23:43:36 -0600
parents c33a99fca826
children d002da24b510
comparison
equal deleted inserted replaced
894:c33a99fca826 895:49ff91097d6c
63 private String _host; 63 private String _host;
64 public final int port; 64 public final int port;
65 private int _acceptors = 1; 65 private int _acceptors = 1;
66 private int _acceptorPriorityOffset = 0; 66 private int _acceptorPriorityOffset = 0;
67 private boolean _useDNS; 67 private boolean _useDNS;
68 private String _hostHeader;
69 68
70 private String _forwardedHostHeader = HttpHeaders.X_FORWARDED_HOST; 69 private String _forwardedHostHeader = HttpHeaders.X_FORWARDED_HOST;
71 private String _forwardedServerHeader = HttpHeaders.X_FORWARDED_SERVER; 70 private String _forwardedServerHeader = HttpHeaders.X_FORWARDED_SERVER;
72 private String _forwardedForHeader = HttpHeaders.X_FORWARDED_FOR; 71 private String _forwardedForHeader = HttpHeaders.X_FORWARDED_FOR;
73 private String _forwardedProtoHeader = HttpHeaders.X_FORWARDED_PROTO; 72 private String _forwardedProtoHeader = HttpHeaders.X_FORWARDED_PROTO;
365 364
366 /* ------------------------------------------------------------ */ 365 /* ------------------------------------------------------------ */
367 public void setResolveNames(boolean resolve) 366 public void setResolveNames(boolean resolve)
368 { 367 {
369 _useDNS = resolve; 368 _useDNS = resolve;
370 }
371
372 /* ------------------------------------------------------------ */
373 public String getHostHeader()
374 {
375 return _hostHeader;
376 }
377
378 /* ------------------------------------------------------------ */
379 /**
380 * Set a forced valued for the host header to control what is returned by {@link ServletRequest#getServerName()} and {@link ServletRequest#getServerPort()}.
381 * This value is only used if {@link #isForwarded()} is true.
382 *
383 * @param hostHeader
384 * The value of the host header to force.
385 */
386 public void setHostHeader(String hostHeader)
387 {
388 _hostHeader = hostHeader;
389 } 369 }
390 370
391 /* ------------------------------------------------------------ */ 371 /* ------------------------------------------------------------ */
392 /* 372 /*
393 * 373 *