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