public class BaseURLSourceImpl extends java.lang.Object implements BaseURLSource
| Constructor and Description |
|---|
BaseURLSourceImpl(Request request,
java.lang.String hostname,
int hostPort,
int secureHostPort) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseURL(boolean secure)
Returns the base portion of the URL, before the context path and servlet path are appended.
|
public java.lang.String getBaseURL(boolean secure)
BaseURLSourcegetBaseURL in interface BaseURLSourcesecure - whether a secure "https" or insecure "http" base URL should be returned${project.version} - Copyright © 2003-2015 The Apache Software Foundation.