Class WebsiteProcessActionHandler.BaseURL
- java.lang.Object
-
- lumis.service.portalmanagement.website.WebsiteProcessActionHandler.BaseURL
-
- All Implemented Interfaces:
IWebsiteBaseURL
- Enclosing class:
- WebsiteProcessActionHandler
public static class WebsiteProcessActionHandler.BaseURL extends Object implements IWebsiteBaseURL
- Since:
- 7.0.0
- Version:
- $Revision: 23785 $ $Date: 2020-05-06 18:46:13 -0300 (Wed, 06 May 2020) $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 aHttpServletRequest
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.
-
-
-
Method Detail
-
setId
public void setId(String id)
-
getId
public String getId()
-
setDomain
public void setDomain(String domain)
-
getDomain
public String getDomain()
Description copied from interface:IWebsiteBaseURL
Returns the domain of this website base URL.- Specified by:
getDomain
in interfaceIWebsiteBaseURL
- Returns:
- the domain. Example:
my.site.com
-
setPort
public void setPort(Integer port)
-
getPort
public int getPort()
Description copied from interface:IWebsiteBaseURL
Returns the port of this website base URL.- Specified by:
getPort
in interfaceIWebsiteBaseURL
- Returns:
- the port of this website base URL.
-
setPath
public void setPath(String path)
-
getPath
public String getPath()
Description copied from interface:IWebsiteBaseURL
Returns the path part of this website base URL.- Specified by:
getPath
in interfaceIWebsiteBaseURL
- Returns:
- the path path of this website base URL, or an empty string
if it has no path. Never returns
null
.
-
toString
public String toString()
Description copied from interface:IWebsiteBaseURL
Returns a string representation of this base URL.The purpose of the returned string is for simple display of this base URL and may not be compatible to any format.
- Specified by:
toString
in interfaceIWebsiteBaseURL
- Overrides:
toString
in classObject
- Returns:
- this base URL as a string.
-
toString
public String toString(boolean includePort)
-
getWebsite
public IWebsite getWebsite()
Description copied from interface:IWebsiteBaseURL
Returns the website this base URL belongs to.- Specified by:
getWebsite
in interfaceIWebsiteBaseURL
- Returns:
- the website this base URL belongs to.
-
matches
public boolean matches(HttpServletRequest request)
Description copied from interface:IWebsiteBaseURL
Returns whether aHttpServletRequest
destination matches this base URL.The request is considered as matching this base URL if its destination corresponds to any resource inside it.
- Specified by:
matches
in interfaceIWebsiteBaseURL
- Parameters:
request
- the request.- Returns:
true
if the request matches this base URL,false
otherwise.
-
toURI
public URI toURI(boolean secure)
Description copied from interface:IWebsiteBaseURL
Returns this base URL as a URI object.- Specified by:
toURI
in interfaceIWebsiteBaseURL
- Parameters:
secure
- whether the URI returned is to use a secure schema or not.- Returns:
- the URI.
-
-