| Package: | Granite |
| Class: | HTTP |
| Extends: | Object |
| Clientlib: | <unknown> , * |
| Method | Defined By | |
|---|---|---|
HTTP.eval( Object/String response ) : Object <static> Evaluates and returns the body of the specified response object.
Alternatively, a URL can be specified...
<static> Evaluates and returns the body of the specified response object.
Alternatively, a URL can be specified, in which case it will be
requested using a synchornous get in order to acquire
the response object.
Added in CQ 5.3.
Parameters:
|
HTTP | |
HTTP.externalize( String url ) : String <static> Makes sure the specified relative URL starts with the context path
used on the server. If an absolute ...
<static> Makes sure the specified relative URL starts with the context path
used on the server. If an absolute URL is passed, it will be returned
as-is.
Parameters:
|
HTTP | |
|
HTTP.getContextPath() : String <static> Returns the context path used on the server.
<static> Returns the context path used on the server.
Parameters:
|
HTTP | |
HTTP.getPath( String url ) : String <static> Removes all parts but the path from the specified URL.
Examples:/x/y.sel.html?param=abc => /x/y
htt...
<static> Removes all parts but the path from the specified URL.
Examples:
Parameters:
|
HTTP | |
HTTP.getSchemeAndAuthority( String url ) : String <static> Returns the scheme and authority (user, hostname, port) part of
the specified URL or an empty string i...
<static> Returns the scheme and authority (user, hostname, port) part of
the specified URL or an empty string if the URL does not include
that part.
Parameters:
|
HTTP | |
HTTP.internalize( String url, [String doc] ) : String <static> Removes scheme, authority and context path from the specified
absolute URL if it has the same scheme a...
<static> Removes scheme, authority and context path from the specified
absolute URL if it has the same scheme and authority as the
specified document (or the current one). If a relative URL is passed,
the context path will be stripped if present.
Parameters:
|
HTTP | |
HTTP.removeAnchor( String url ) : String <static> Removes the anchor from the specified URL.
<static> Removes the anchor from the specified URL.
Parameters:
|
HTTP | |
HTTP.removeParameters( String url ) : String <static> Removes all parameter from the specified URL.
<static> Removes all parameter from the specified URL.
Parameters:
|
HTTP | |