You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In API version 41.0 and later, Apex URL objects are represented by the java.net.URI type, not the java.net.URL type.
38
38
@@ -102,7 +102,7 @@ global Url(String spec)
102
102
103
103
Creates a new instance of the URL class by parsing the specified spec within the specified context.
104
104
105
-
**Usage**
105
+
**Usage**
106
106
107
107
The new URL is created from the given context URL and the spec argument as described in RFC2396 "Uniform Resource Identifiers : Generic * Syntax" :
108
108
```xml
@@ -181,7 +181,7 @@ The authority portion of the current URL.
181
181
182
182
Returns the URL of an entire request on a Salesforce instance.
183
183
184
-
**Usage**
184
+
**Usage**
185
185
186
186
An example of a URL for an entire request is https://yourInstance.salesforce.com/apex/myVfPage.apexp.
187
187
@@ -201,7 +201,7 @@ The URL of the entire request.
201
201
202
202
Returns the default port number of the protocol associated with the current URL.
203
203
204
-
**Usage**
204
+
**Usage**
205
205
206
206
Returns -1 if the URL scheme or the stream protocol handler for the URL doesn't define a default port number.
207
207
@@ -281,15 +281,15 @@ The host name of the current URL.
281
281
282
282
Returns the canonical URL for your org. For example, https://MyDomainName.my.salesforce.com.
283
283
284
-
**Usage**
284
+
**Usage**
285
285
286
286
Use getOrgDomainUrl() to interact with Salesforce REST and SOAP APIs in Apex code. Get endpoints for User Interface API calls, for creating and customizing picklist value sets and custom fields, and more.
287
287
288
288
`getOrgDomainUrl()` can access the domain URL only for the org in which the Apex code is running.
289
289
290
290
You don't need a RemoteSiteSetting for your org to interact with the Salesforce APIs using domain URLs retrieved with this method.
291
291
292
-
**See Also**
292
+
**See Also**
293
293
294
294
*[Lightning Aura Components Developer Guide: Making API Calls from Apex](https://developer.salesforce.com/docs/atlas.en-us.250.0.lightning.meta/lightning/apex_api_calls.htm)
0 commit comments