com.ibm.portal.state.accessors.url
Interface URLContext
- All Known Subinterfaces:
- URLContextEx
-
public interface URLContext
Context interface that allow the specification of the type of URLs
that may be generated.
Clients can implement this interface in order to specify the URL context.
- Since:
- 5.1
- Note:
This interface is designed to be implemented by clients. |
Method Summary
|
boolean |
isAbsolute()
Specifies if the URL should be an absolute URL. |
boolean |
isRelative()
Specifies if the URL should be a relative URL. |
boolean |
isServerRelative()
Specifies if the URL should be a server relative URL. |
isServerRelative
boolean isServerRelative()
- Specifies if the URL should be a server relative URL.
- Returns:
- true if the context allows URLs that are relative to the server (i.e. the
browser implies the current protocol, hostname and port), else false
isAbsolute
boolean isAbsolute()
- Specifies if the URL should be an absolute URL.
- Returns:
- true if the context allows URLs that are absolute (i.e. it contains a protocol, hostname and
port), else false
isRelative
boolean isRelative()
- Specifies if the URL should be a relative URL.
- Returns:
- true if the context allows URLs that are relative (i.e. the browser appends the URL to
either the current request URL or to the value of the HTML base tag), else false