public class UrlUtil extends Object
Constructor and Description |
---|
UrlUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getContextUrl(HttpServletRequest request)
Returns a context URL, i.e. http://server:port/context, built
using the
HttpServletRequest object;
'http://' + request.getServerName() + ':' + request.getServerPort()
+ request.getContextPath() |
public static String getContextUrl(HttpServletRequest request)
HttpServletRequest
object;
'http://' + request.getServerName() + ':' + request.getServerPort()
+ request.getContextPath()request
- a HttpServletRequest
© 1998- 2014 Escenic
Contact Escenic Support for bug submission or feature requests. For further API reference and developer documentation, see Technet. The Technet documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Escenic A/S, Sommerrogt. 13-15 Solli, 0255 Oslo, Norway.