Package de.uplanet.lucy.server.composer
Klasse UrlBuilder
java.lang.Object
de.uplanet.lucy.server.composer.UrlBuilder
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic URLVeraltet.static URLVeraltet.UsecreateAbsoluteBaseUrl(IServerBridgeRequest)instead.static URLstatic URLcreateAbsoluteBaseUrl(IServerBridgeRequest p_request) Create an absolute base URL from the given request.static URLReconstructs the URL the client used to make the request.static URLReconstructs the URL the client used to make the request.static URLCreate a base URL, i.e. a relative URL containing solely the root path/.static URLcreateBaseUrl(IServerBridgeRequest p_request) Create a base URL, i.e. a relative URL containing solely the root path/.static URLVeraltet.UsecreateBaseUrl(IRequestProcessingContext)instead.static URLcreateDefaultUrl(IServerBridgeRequest p_request) Veraltet.UsecreateBaseUrl(IServerBridgeRequest)instead.static URLVeraltet.static URLVeraltet.static URLstatic URLcreateWebSocketBaseUrl(IServerBridgeRequest p_request) Create a WebSocket URL from the given request.static URLCreate an URL from the given string.
-
Methodendetails
-
createBaseUrl
Create a base URL, i.e. a relative URL containing solely the root path/.- Parameter:
p_request- The request.- Gibt zurück:
- The
/base URL.
-
createBaseUrl
Create a base URL, i.e. a relative URL containing solely the root path/.- Parameter:
p_ctx- The processing context.- Gibt zurück:
- The
/base URL. - Siehe auch:
-
createAbsoluteBaseUrl
public static URL createAbsoluteBaseUrl(IRequestProcessingContext p_ctx) throws MalformedURLException - Parameter:
p_ctx- The processing context.- Löst aus:
MalformedURLException- Siehe auch:
-
createAbsoluteBaseUrl
public static URL createAbsoluteBaseUrl(IServerBridgeRequest p_request) throws MalformedURLException Create an absolute base URL from the given request.The returned absolute URL will always contain a terminating slash
/.This method tries to create an absolute base URL as follows
- First, if the
doc("internal/cfg/portal.cfg")/portal/uris/uri[@name='web.url.base.default']configuration parameter exists, return it. This is the preferred way. The following is a fallback in case the portal's default URL is not configured. - Second, try to create an absolute URL from
SERVERVAR.SCHEME,SERVERVAR.SERVER_NAME,SERVERVAR.SERVER_PORT, and return it.
- Parameter:
p_request- The request.- Gibt zurück:
- The base URL.
- Löst aus:
MalformedURLException- If a parsing error occurred.
- First, if the
-
createWebSocketBaseUrl
public static URL createWebSocketBaseUrl(IRequestProcessingContext p_ctx) throws MalformedURLException - Parameter:
p_ctx- The processing context.- Löst aus:
MalformedURLException- Siehe auch:
-
createWebSocketBaseUrl
public static URL createWebSocketBaseUrl(IServerBridgeRequest p_request) throws MalformedURLException Create a WebSocket URL from the given request.This method uses the same algorithm as
createAbsoluteBaseUrl(IServerBridgeRequest)except that the scheme iswsorwssinstead ofhttporhttps.- Parameter:
p_request- The request.- Gibt zurück:
- The WebSocket URL.
- Löst aus:
MalformedURLException- If a parsing error occurred.- Siehe auch:
-
createAbsoluteRequestBaseDirectoryUrl
public static URL createAbsoluteRequestBaseDirectoryUrl(IRequestProcessingContext p_ctx) throws MalformedURLException Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, (optional) port number, and server path without the document part.The document part is the rightmost path component that is not followed by a slash.
- Parameter:
p_ctx- The processing context.- Gibt zurück:
- The request base directory URL.
- Löst aus:
MalformedURLException- If a parsing error occurred.- Siehe auch:
-
createAbsoluteRequestBaseDirectoryUrl
public static URL createAbsoluteRequestBaseDirectoryUrl(IServerBridgeRequest p_request) throws MalformedURLException Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, (optional) port number, and server path without the document part.The document part is the rightmost path component that is not followed by a slash.
- Parameter:
p_request- The request.- Gibt zurück:
- The request base directory URL.
- Löst aus:
MalformedURLException- If a parsing error occurred.
-
parseUrl
Create an URL from the given string.- Parameter:
p_strUrl- The string to be parsed.- Gibt zurück:
- The URL.
- Löst aus:
MalformedURLException- If a parsing error occurred.
-
createDefaultUrl
Veraltet.UsecreateBaseUrl(IServerBridgeRequest)instead.The same ascreateBaseUrl(IServerBridgeRequest).- Parameter:
p_request- The request.- Gibt zurück:
- The URL.
-
createDefaultUrl
Veraltet.UsecreateBaseUrl(IRequestProcessingContext)instead.The same ascreateBaseUrl(IRequestProcessingContext).- Parameter:
p_ctx- The processing context.- Gibt zurück:
- The URL.
-
createAbsoluteBaseDirectoryUrl
@Deprecated public static URL createAbsoluteBaseDirectoryUrl(IServerBridgeRequest p_request) throws MalformedURLException Veraltet.UsecreateAbsoluteBaseUrl(IServerBridgeRequest)instead.The same URL ascreateAbsoluteBaseUrl(IServerBridgeRequest).- Parameter:
p_request- The request.- Gibt zurück:
- The URL.
- Löst aus:
MalformedURLException- If a parsing error occurred.
-
createAbsoluteBaseDirectoryUrl
@Deprecated public static URL createAbsoluteBaseDirectoryUrl(IRequestProcessingContext p_ctx) throws MalformedURLException Veraltet.UsecreateAbsoluteBaseUrl(IRequestProcessingContext)instead.The same URL ascreateAbsoluteBaseUrl(IRequestProcessingContext).- Parameter:
p_ctx- The processing context.- Gibt zurück:
- The URL.
- Löst aus:
MalformedURLException- If a parsing error occurred.
-
createRequestBaseDirectoryUrl
@Deprecated public static URL createRequestBaseDirectoryUrl(IServerBridgeRequest p_request) throws MalformedURLException Veraltet.- Parameter:
p_request- The request.- Gibt zurück:
- The URL.
- Löst aus:
MalformedURLException
-
createRequestBaseDirectoryUrl
@Deprecated public static URL createRequestBaseDirectoryUrl(IRequestProcessingContext p_ctx) throws MalformedURLException Veraltet.- Parameter:
p_ctx- The processing context.- Gibt zurück:
- The URL.
- Löst aus:
MalformedURLException
-
createAbsoluteBaseUrl(IRequestProcessingContext)instead.