|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--PTTransformer
A utility class for gateway transformer methods. This object contains no public fields or methods.
Defined in PTTransformer.js
Constructor Summary | |
PTTransformer
()
PTTransformer static object constructor. |
Method Summary | |
<static> Object
|
addPortToURL(uri, portNumber)
Takes a String url, parses it, and swaps or adds the given portNumber. |
<static> Object
|
changeUri(uri,propertyName,newValue)
Takes a url object and assigns the given property a new value. |
<static> Object
|
doesURLbeginWithSlash(URL)
|
<static> Object
|
doesURLendWithSlash(URL)
|
<static> <private> Object
|
makeAbsoluteURL(URL,remoteRequestURL,remoteBaseURL)
Make an URL into an absolute URL |
<static> Object
|
makeAbsoluteURLforRunner(URL,remoteRequestURL,remoteBaseURL)
|
<static> <private> Object
|
makeRelativeURL(remoteAbsoluteURL,remoteBaseURL)
Make an absolute URL into a relatice URL |
<static> Object
|
parseURL(_url)
Takes any string url object and parses it into queryable/settable segments: "wholeUrl" - the matching url, input url "protocol" - http or https, possibly null for relative urls "domain" - everything between the "protocol" and the "portWithPrecedingColon" "portWithPrecedingColon" - port # preceded with :, ie ":80" "restOfURLafterPort" - everything after the port number (queryString, anchor, etc) |
<static> Object
|
prepUrlForTransformAlgor(url)
Preps an URL for transformation by adding default ports 80/443 to urls which don't already have them. |
<static> <private> Object
|
transformURLasPortal(URL,remoteRequestURL,remoteBaseURL,gatewayPrefixURL,secureGatewayPrefixURL)
Transform a URL to be gatewayed |
<static> Object
|
transformURLasRunner(URL,remoteRequestURL,remoteBaseURL,gatewayPrefixURL,secureGatewayPrefixURL)
|
Constructor Detail |
PTTransformer()
Method Detail |
<static> Object addPortToURL(uri, portNumber)
<static> Object changeUri(uri,propertyName,newValue)
<static> Object doesURLbeginWithSlash(URL)
<static> Object doesURLendWithSlash(URL)
<static> <private> Object makeAbsoluteURL(URL,remoteRequestURL,remoteBaseURL)
URL
- remoteRequestURL
- remoteBaseURL
- <static> Object makeAbsoluteURLforRunner(URL,remoteRequestURL,remoteBaseURL)
<static> <private> Object makeRelativeURL(remoteAbsoluteURL,remoteBaseURL)
remoteAbsoluteURL
- remoteBaseURL
- <static> Object parseURL(_url)
<static> Object prepUrlForTransformAlgor(url)
<static> <private> Object transformURLasPortal(URL,remoteRequestURL,remoteBaseURL,gatewayPrefixURL,secureGatewayPrefixURL)
URL
- remoteRequestURL
- remoteBaseURL
- gatewayPrefixURL
- secureGatewayPrefixURL
- <static> Object transformURLasRunner(URL,remoteRequestURL,remoteBaseURL,gatewayPrefixURL,secureGatewayPrefixURL)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |