Class BaseURLSourceImpl
java.lang.Object
org.apache.tapestry5.http.internal.services.BaseURLSourceImpl
- All Implemented Interfaces:
BaseURLSource
-
Constructor Summary
ConstructorsConstructorDescriptionBaseURLSourceImpl(Request request, String hostname, int hostPort, int secureHostPort) -
Method Summary
Modifier and TypeMethodDescriptiongetBaseURL(boolean secure) Returns the base portion of the URL, before the context path and servlet path are appended.
-
Constructor Details
-
BaseURLSourceImpl
-
-
Method Details
-
getBaseURL
Description copied from interface:BaseURLSourceReturns the base portion of the URL, before the context path and servlet path are appended. The return value should not end with a slash; it should end after the host name, or after the port number. The context path, servlet path, and path info will be appended to the returned value.- Specified by:
getBaseURLin interfaceBaseURLSource- Parameters:
secure- whether a secure "https" or insecure "http" base URL should be returned- Returns:
- the base URL ready for additional extensions
-