|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uplanet.lucy.server.composer.UrlBuilder
@Scriptable public final class UrlBuilder
Constructor Summary | |
---|---|
UrlBuilder()
|
Method Summary | |
---|---|
static URL |
createAbsoluteBaseDirectoryUrl(IRequestProcessingContext p_ctx)
|
static URL |
createAbsoluteBaseDirectoryUrl(IServerBridgeRequest p_request)
The same URL as createAbsoluteBaseUrl(IServerBridgeRequest) but without
the document part in the path. |
static URL |
createAbsoluteBaseUrl(IRequestProcessingContext p_ctx)
|
static URL |
createAbsoluteBaseUrl(IServerBridgeRequest p_request)
Create an absolute base URL from the given request. |
static URL |
createBaseUrl(IRequestProcessingContext p_ctx)
|
static URL |
createBaseUrl(IServerBridgeRequest p_request)
Create a base URL from the given request. |
static URL |
createDefaultUrl(IRequestProcessingContext p_ctx)
|
static URL |
createDefaultUrl(IServerBridgeRequest p_request)
Creates a default URL from the given request. |
static URL |
createPersistentBaseUrl(IServerBridgeRequest p_request)
|
static URL |
createPersistentDefaultUrl(IServerBridgeRequest p_request)
|
static URL |
parseUrl(java.lang.String p_strUrl)
Create an URL from the given string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlBuilder()
Method Detail |
---|
public static URL createDefaultUrl(IServerBridgeRequest p_request) throws java.net.MalformedURLException
http://www.domain.tld/portalname/default.asp http://www.domain.tld/portalname/default.ixsp
p_request
- The request to get the base part from.
java.net.MalformedURLException
public static URL createDefaultUrl(IRequestProcessingContext p_ctx) throws java.net.MalformedURLException
java.net.MalformedURLException
createDefaultUrl(IServerBridgeRequest)
public static URL createPersistentDefaultUrl(IServerBridgeRequest p_request) throws java.net.MalformedURLException
java.net.MalformedURLException
public static URL createBaseUrl(IServerBridgeRequest p_request) throws java.net.MalformedURLException
The method uses the SERVERVAR.REQUEST_URI
server variable to build the absolute or relative base URL.
p_request
- The request.
java.net.MalformedURLException
- - If a parsing error occurred.public static URL createBaseUrl(IRequestProcessingContext p_ctx) throws java.net.MalformedURLException
java.net.MalformedURLException
createBaseUrl(IServerBridgeRequest)
public static URL createAbsoluteBaseUrl(IServerBridgeRequest p_request) throws java.net.MalformedURLException
This method tries to create an absolute base URL as follows
doc("internal/cfg/portal.cfg")/portal/uris/uri[@name='web.url.base.default']
configuration parameter exists, return it.
SERVERVAR.DEFAULT_URL
is an
absolute URL, return it.SERVERVAR.SCHEME
,
SERVERVAR.HTTP_HOST
or
SERVERVAR.SERVER_NAME
,
SERVERVAR.SERVER_PORT
, and
SERVERVAR.DEFAULT_URL
and return it.
p_request
- The request.
java.net.MalformedURLException
- - If a parsing error occurred.public static URL createAbsoluteBaseUrl(IRequestProcessingContext p_ctx) throws java.net.MalformedURLException
java.net.MalformedURLException
createAbsoluteBaseUrl(IServerBridgeRequest)
public static URL createAbsoluteBaseDirectoryUrl(IServerBridgeRequest p_request) throws java.net.MalformedURLException
createAbsoluteBaseUrl(IServerBridgeRequest)
but without
the document part in the path.
p_request
- The request.
java.net.MalformedURLException
- - If a parsing error occurred.public static URL createAbsoluteBaseDirectoryUrl(IRequestProcessingContext p_ctx) throws java.net.MalformedURLException
java.net.MalformedURLException
createAbsoluteBaseDirectoryUrl(IServerBridgeRequest)
public static URL createPersistentBaseUrl(IServerBridgeRequest p_request)
public static URL parseUrl(java.lang.String p_strUrl) throws java.net.MalformedURLException
p_strUrl
- The string to be parsed.
java.net.MalformedURLException
- - If a parsing error occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |