예제 #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();
   }
 }
예제 #2
0
파일: Authority.java 프로젝트: gugu-lee/as
 /**
  * Get the host name.
  *
  * @return Host (null if not set)
  */
 public Host getHost() {
   if (hostPort == null) return null;
   else return hostPort.getHost();
 }