@StableMinor(version="12.4", sinceVersion="6.2") public interface IWebsiteBaseURL
A base URL contains domain, port and path.
For a URL to be considered as matching this base URL it must:
Website
Modifier and Type | Method and Description |
---|---|
String |
getDomain()
Returns the domain of this website base URL.
|
String |
getPath()
Returns the path part of this website base URL.
|
int |
getPort()
Returns the port of this website base URL.
|
IWebsite |
getWebsite()
Returns the website this base URL belongs to.
|
boolean |
matches(HttpServletRequest request)
Returns whether a
HttpServletRequest destination matches this
base URL. |
String |
toString()
Returns a string representation of this base URL.
|
URI |
toURI(boolean secure)
Returns this base URL as a URI object.
|
String getDomain()
my.site.com
int getPort()
String getPath()
null
.boolean matches(HttpServletRequest request)
HttpServletRequest
destination matches this
base URL.
The request is considered as matching this base URL if its destination corresponds to any resource inside it.
request
- the request.true
if the request matches this base URL, false
otherwise.String toString()
The purpose of the returned string is for simple display of this base URL and may not be compatible to any format.
IWebsite getWebsite()
URI toURI(boolean secure)
secure
- whether the URI returned is to use a secure schema or not.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.