Class PTTransformer

Object
   |
   +--PTTransformer

class 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

PTTransformer()

Method Detail

addPortToURL

<static> Object addPortToURL(uri, portNumber)

changeUri

<static> Object changeUri(uri,propertyName,newValue)

doesURLbeginWithSlash

<static> Object doesURLbeginWithSlash(URL)

doesURLendWithSlash

<static> Object doesURLendWithSlash(URL)

makeAbsoluteURL

<static>  <private> Object makeAbsoluteURL(URL,remoteRequestURL,remoteBaseURL)

makeAbsoluteURLforRunner

<static> Object makeAbsoluteURLforRunner(URL,remoteRequestURL,remoteBaseURL)

makeRelativeURL

<static>  <private> Object makeRelativeURL(remoteAbsoluteURL,remoteBaseURL)

parseURL

<static> Object parseURL(_url)

prepUrlForTransformAlgor

<static> Object prepUrlForTransformAlgor(url)

transformURLasPortal

<static>  <private> Object transformURLasPortal(URL,remoteRequestURL,remoteBaseURL,gatewayPrefixURL,secureGatewayPrefixURL)

transformURLasRunner

<static> Object transformURLasRunner(URL,remoteRequestURL,remoteBaseURL,gatewayPrefixURL,secureGatewayPrefixURL)


Documentation generated by JSDoc on Tue Sep 21 02:03:57 2010