Packagecom.vmware.flexutil
Classpublic class ServiceUtil
InheritanceServiceUtil Inheritance Object

Remote services utilities.



Public Methods
 MethodDefined By
  
getDefaultChannelUri(contextPath:String):String
[static] Return the default channel uri to use for a given context path.
ServiceUtil
Method Detail
getDefaultChannelUri()method
public static function getDefaultChannelUri(contextPath:String):String

Return the default channel uri to use for a given context path.

For example with context "vsphere-client/chassis-ui", this returns "/vsphere-client/chassis-ui/messagebroker/amfsecure" or "/vsphere-client/chassis-ui/messagebroker/amf" depending on whether a secure channel is required, i.e. if the AMF call is done over https or http.

IMPORTANT: Use this method when extending BaseProxy as shown in the SDK samples so that your plugin work in all cases, whether or not vSphere client is behind a reverse proxy (in which case the internal URL is http).

Parameters

contextPath:String — Application's web context path (defined in bundle MANIFEST.MF)

Returns
String