Example #1
0
 /**
  * Returns the host part of this ViaHeader.
  *
  * @return the string value of the host
  */
 public String getHost() {
   if (sentBy == null) return null;
   else {
     Host host = sentBy.getHost();
     if (host == null) return null;
     else return host.getHostname();
   }
 }
Example #2
0
 /**
  * Get the host name.
  *
  * @return Host (null if not set)
  */
 public Host getHost() {
   if (hostPort == null) return null;
   else return hostPort.getHost();
 }