private String getTargetHost ( ) { String host = getVirtualHost ( ) ; if ( null == host ) { host = ( isIncoming ( ) ) ? getServiceContext ( ) . getLocalAddr ( ) . getCanonicalHostName ( ) : getServiceContext ( ) . getRemoteAddr ( ) . getCanonicalHostName ( ) ; } return host ; }
Find the target host of the request . This checks the VirtualHost data but falls back on the socket layer target if need be .