public String getProxyURLString ( HttpServletRequest req ) throws MalformedURLException { String proxyUrlString = proxyURLPrefix ; if ( req . getPathInfo ( ) != null ) if ( req . getPathInfo ( ) . length ( ) > 0 ) proxyUrlString += req . getPathInfo ( ) ; if ( req . getQueryString ( ) != null ) if ( req . getQueryString ( ) . length ( ) > 0 ) proxyUrlString += "?" + req . getQueryString ( ) ; req . getContentType ( ) ; return proxyUrlString ; }
Create the url string for the proxy server .