public static class WebsiteProcessActionHandler.BaseURL extends Object implements IWebsiteBaseURL
Constructor and Description |
---|
BaseURL(String id,
String domain,
Integer port,
String path) |
Modifier and Type | Method and Description |
---|---|
String |
getDomain()
Returns the domain of this website base URL.
|
String |
getId() |
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. |
void |
setDomain(String domain) |
void |
setId(String id) |
void |
setPath(String path) |
void |
setPort(Integer port) |
String |
toString()
Returns a string representation of this base URL.
|
String |
toString(boolean includePort) |
URI |
toURI(boolean secure)
Returns this base URL as a URI object.
|
public void setId(String id)
public String getId()
public void setDomain(String domain)
public String getDomain()
IWebsiteBaseURL
getDomain
in interface IWebsiteBaseURL
my.site.com
public void setPort(Integer port)
public int getPort()
IWebsiteBaseURL
getPort
in interface IWebsiteBaseURL
public void setPath(String path)
public String getPath()
IWebsiteBaseURL
getPath
in interface IWebsiteBaseURL
null
.public String toString()
IWebsiteBaseURL
The purpose of the returned string is for simple display of this base URL and may not be compatible to any format.
toString
in interface IWebsiteBaseURL
toString
in class Object
public String toString(boolean includePort)
public IWebsite getWebsite()
IWebsiteBaseURL
getWebsite
in interface IWebsiteBaseURL
public boolean matches(HttpServletRequest request)
IWebsiteBaseURL
HttpServletRequest
destination matches this
base URL.
The request is considered as matching this base URL if its destination corresponds to any resource inside it.
matches
in interface IWebsiteBaseURL
request
- the request.true
if the request matches this base URL, false
otherwise.public URI toURI(boolean secure)
IWebsiteBaseURL
toURI
in interface IWebsiteBaseURL
secure
- whether the URI returned is to use a secure schema or not.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.