private int getTargetPort ( ) { int port = getVirtualPort ( ) ; if ( NOTSET == port ) { port = ( isIncoming ( ) ) ? getServiceContext ( ) . getLocalPort ( ) : getServiceContext ( ) . getRemotePort ( ) ; } return port ; }
Find the target port of the request . This checks the VirtualPort data and falls back on the socket port information if need be .