|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FriendlyURLFactory
Provides access to FriendlyURL
objects that allow to systematically generate URLs with a friendly prefix.
Method Summary | |
---|---|
ServerContext |
getServerContext()
Returns information about the URL configuration in the scope of the current request. |
FriendlyURL |
newURL()
Generates a URL that points to the portal servlet and it based on the navigational state of the current request. |
FriendlyURL |
newURL(Constants.Clone type)
Generates a URL that points to the portal servlet and it based on the navigational state of the current request. |
FriendlyURL |
newURL(ServerContext serverContext,
URLContext allowedContext,
Constants.Clone type)
Generates a URL based on the given server context. |
FriendlyURL |
newURL(URLContext allowedContext,
Constants.Clone type)
Generates a URL that points to the portal servlet and it based on the navigational state of the current request. |
Method Detail |
---|
FriendlyURL newURL() throws StateException
FriendlyURL
object. Not null
.
StateException
- -
if the URL could not be createdFriendlyURL newURL(Constants.Clone type) throws StateException
type
- Type of the clone operation to get a copy of the given
StateHolder
. May be null
in which case
a SMART_COPY will be generated.
FriendlyURL
object. Not null
.
StateException
- -
if the URL could not be createdFriendlyURL newURL(URLContext allowedContext, Constants.Clone type) throws StateException
allowedContext
- Specifies what type of URL may be generated. May be
null
to indicate that the server's default URL
context should be used.type
- Type of the clone operation to get a copy of the given
StateHolder
. May be null
in which case
a SMART_COPY will be generated.
FriendlyURL
object. Not null
.
StateException
- -
if the URL could not be createdFriendlyURL newURL(ServerContext serverContext, URLContext allowedContext, Constants.Clone type) throws StateException
serverContext
- Specifies the server information. Must not be
null
.allowedContext
- Specifies what type of URL may be generated. May be
null
to indicate that the server's default URL
context should be used.type
- Type of the clone operation to get a copy of the given
StateHolder
. May be null
in which case
a SMART_COPY will be generated.
FriendlyURL
object. Not null
.
StateException
- -
if the URL could not be createdServerContext getServerContext()
getServerContext
in interface ServerContextProvider
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |