public static class RestClient.ClientInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
accountName |
java.util.Map<java.lang.String,java.lang.String> |
additionalOauthValues |
java.lang.String |
communityId |
java.lang.String |
communityUrl |
java.lang.String |
contentDomain |
java.lang.String |
contentSid |
java.lang.String |
csrfToken |
java.lang.String |
displayName |
java.lang.String |
email |
java.lang.String |
firstName |
java.net.URI |
identityUrl |
java.net.URI |
instanceUrl |
java.lang.String |
lastName |
java.lang.String |
lightningDomain |
java.lang.String |
lightningSid |
java.net.URI |
loginUrl |
java.lang.String |
orgId |
java.lang.String |
photoUrl |
java.lang.String |
thumbnailUrl |
java.lang.String |
userId |
java.lang.String |
username |
java.lang.String |
vfDomain |
java.lang.String |
vfSid |
Constructor and Description |
---|
ClientInfo(java.net.URI instanceUrl,
java.net.URI loginUrl,
java.net.URI identityUrl,
java.lang.String accountName,
java.lang.String username,
java.lang.String userId,
java.lang.String orgId,
java.lang.String communityId,
java.lang.String communityUrl,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String displayName,
java.lang.String email,
java.lang.String photoUrl,
java.lang.String thumbnailUrl,
java.util.Map<java.lang.String,java.lang.String> additionalOauthValues,
java.lang.String lightningDomain,
java.lang.String lightningSid,
java.lang.String vfDomain,
java.lang.String vfSid,
java.lang.String contentDomain,
java.lang.String contentSid,
java.lang.String csrfToken)
Parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildUniqueId() |
java.net.URI |
getInstanceUrl()
Returns a URI representation of the instance URL.
|
java.lang.String |
getInstanceUrlAsString()
Returns a string representation of the instance URL.
|
java.net.URI |
resolveUrl(RestRequest request)
Resolves the given
RestRequest to its URL. |
java.net.URI |
resolveUrl(java.lang.String path)
Resolves the given path against the community URL or the instance
URL, depending on whether the user is a community user or not.
|
java.net.URI |
resolveUrl(java.lang.String path,
RestRequest.RestEndpoint endpoint)
Resolves the given path against the community URL, login URL, or instance
URL.
|
java.lang.String |
toString() |
public final java.net.URI instanceUrl
public final java.net.URI loginUrl
public final java.net.URI identityUrl
public final java.lang.String accountName
public final java.lang.String username
public final java.lang.String userId
public final java.lang.String orgId
public final java.lang.String communityId
public final java.lang.String communityUrl
public final java.lang.String firstName
public final java.lang.String lastName
public final java.lang.String displayName
public final java.lang.String email
public final java.lang.String photoUrl
public final java.lang.String thumbnailUrl
public final java.lang.String lightningDomain
public final java.lang.String lightningSid
public final java.lang.String vfDomain
public final java.lang.String vfSid
public final java.lang.String contentDomain
public final java.lang.String contentSid
public final java.lang.String csrfToken
public final java.util.Map<java.lang.String,java.lang.String> additionalOauthValues
public ClientInfo(java.net.URI instanceUrl, java.net.URI loginUrl, java.net.URI identityUrl, java.lang.String accountName, java.lang.String username, java.lang.String userId, java.lang.String orgId, java.lang.String communityId, java.lang.String communityUrl, java.lang.String firstName, java.lang.String lastName, java.lang.String displayName, java.lang.String email, java.lang.String photoUrl, java.lang.String thumbnailUrl, java.util.Map<java.lang.String,java.lang.String> additionalOauthValues, java.lang.String lightningDomain, java.lang.String lightningSid, java.lang.String vfDomain, java.lang.String vfSid, java.lang.String contentDomain, java.lang.String contentSid, java.lang.String csrfToken)
instanceUrl
- Instance URL.loginUrl
- Login URL.identityUrl
- Identity URL.accountName
- Account name.username
- User name.userId
- User ID.orgId
- Org ID.communityId
- Community ID.communityUrl
- Community URL.firstName
- First Name.lastName
- LastName.displayName
- DisplayName.email
- Email.photoUrl
- Photo URL.thumbnailUrl
- Thumbnail URL.additionalOauthValues
- Additional OAuth values.lightningDomain
- Lightning domain.lightningSid
- Lightning SID.vfDomain
- VF domain.vfSid
- VF SID.contentDomain
- Content domain.contentSid
- Content SID.csrfToken
- CSRF token.public java.lang.String buildUniqueId()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getInstanceUrlAsString()
public java.net.URI getInstanceUrl()
public java.net.URI resolveUrl(RestRequest request)
RestRequest
to its URL.request
- The Rest request to resolve.public java.net.URI resolveUrl(java.lang.String path)
path
- Path.public java.net.URI resolveUrl(java.lang.String path, RestRequest.RestEndpoint endpoint)
RestRequest.RestEndpoint
parameter.path
- Pathendpoint
- The Rest endpoint of the URL.