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.
34
34
@@ -95,7 +95,7 @@ global Url(String spec)
95
95
96
96
Creates a new instance of the URL class by parsing the specified spec within the specified context.
97
97
98
-
**Usage**
98
+
**Usage**
99
99
100
100
The new URL is created from the given context URL and the spec argument as described in RFC2396 "Uniform Resource Identifiers : Generic * Syntax" :
101
101
```xml
@@ -174,7 +174,7 @@ The authority portion of the current URL.
174
174
175
175
Returns the URL of an entire request on a Salesforce instance.
176
176
177
-
**Usage**
177
+
**Usage**
178
178
179
179
An example of a URL for an entire request is https://yourInstance.salesforce.com/apex/myVfPage.apexp.
180
180
@@ -194,7 +194,7 @@ The URL of the entire request.
194
194
195
195
Returns the default port number of the protocol associated with the current URL.
196
196
197
-
**Usage**
197
+
**Usage**
198
198
199
199
Returns -1 if the URL scheme or the stream protocol handler for the URL doesn't define a default port number.
200
200
@@ -274,15 +274,15 @@ The host name of the current URL.
274
274
275
275
Returns the canonical URL for your org. For example, https://MyDomainName.my.salesforce.com.
276
276
277
-
**Usage**
277
+
**Usage**
278
278
279
279
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.
280
280
281
281
`getOrgDomainUrl()` can access the domain URL only for the org in which the Apex code is running.
282
282
283
283
You don't need a RemoteSiteSetting for your org to interact with the Salesforce APIs using domain URLs retrieved with this method.
284
284
285
-
**See Also**
285
+
**See Also**
286
286
287
287
*[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