lumis.portal.website
Interface IWebsiteBaseURL

Package class diagram package IWebsiteBaseURL
All Known Subinterfaces:
IWebsiteMainBaseURL

@StableMinor(version="6.2",
             sinceVersion="6.2")
public interface IWebsiteBaseURL

A website base URL. It defines the URLs by which a website is accessible.

A base URL contains domain, port and path.

For a URL to be considered as matching this base URL it must:

Since:
6.2.0
See Also:
Website

Method Summary
 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.
 

Method Detail

getDomain

String getDomain()
Returns the domain of this website base URL.

Returns:
the domain. Example: my.site.com
Since:
6.2.0

getPort

int getPort()
Returns the port of this website base URL.

Returns:
the port of this website base URL.
Since:
6.2.0

getPath

String getPath()
Returns the path part of this website base URL.

Returns:
the path path of this website base URL, or an empty string if it has no path. Never returns null.
Since:
6.2.0

matches

boolean matches(HttpServletRequest request)
Returns whether a HttpServletRequest destination matches this base URL.

The request is considered as matching this base URL if its destination corresponds to any resource inside it.

Parameters:
request - the request.
Returns:
true if the request matches this base URL, false otherwise.
Since:
6.2.0

toString

String toString()
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.

Overrides:
toString in class Object
Returns:
this base URL as a string.
Since:
6.2.0

getWebsite

IWebsite getWebsite()
Returns the website this base URL belongs to.

Returns:
the website this base URL belongs to.
Since:
6.2.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.