@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class MediaEntity extends ServiceProviderEntity implements ISSOResourceProvider
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
_logger |
static java.lang.String |
AUTHENTICATION_TYPE |
static java.lang.String |
AUTHENTICATION_TYPE_BASIC |
static java.lang.String |
AUTHENTICATION_TYPE_NONE |
static java.lang.String |
AUTHENTICATION_TYPE_SESSION_USER |
static java.lang.String |
AUTHENTICATION_TYPE_SSO |
static java.lang.String |
AUTHORIZATION_SERVER_ID |
static java.lang.String |
CONFIG_TABLE_CONTENT_SOURCE_CONNECTION_INFO |
static java.lang.String |
CONFIGURATION_SCOPE_TABLE_NAME |
static java.lang.String |
DYNAMIC_CONTENT |
static java.lang.String |
IGNORE_SSL_ERRORS |
static java.lang.String |
PASSWORD |
static java.lang.String |
SCOPE |
static java.lang.String |
SESSION_USER_CONFIGURATION_TABLE |
static java.lang.String |
SESSION_USER_QUERY_PARAMETER |
static java.lang.String |
SSL_CONFIG_TABLE |
static java.lang.String |
SSL_KEYSTORE_PASSWORD |
static java.lang.String |
SSL_KEYSTORE_PATH |
static java.lang.String |
SSL_TRUSTSTORE_PASSWORD |
static java.lang.String |
SSL_TRUSTSTORE_PATH |
static java.lang.String |
TEST_URL |
static java.lang.String |
TIMEOUT |
static java.lang.String |
URL |
static java.lang.String |
USER_ID |
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
MediaEntity() |
Modifier and Type | Method and Description |
---|---|
static MediaEntity |
fromJSON(org.json.JSONObject jsonObject)
Deprecated.
|
RelationshipTypes.ThingworxRelationshipTypes |
getEntityType()
|
ImagePrimitive |
getImage() |
byte[] |
GetImage()
Service Category: Images
Service Description: Get the content as an image.
|
java.lang.String |
GetMimeType()
Service Category: Images
Service Description: Get the mime type.
|
java.lang.String |
GetProxyUrl(java.lang.String targetUrl,
java.lang.Boolean isAbsoluteTargetUrl)
Deprecated.
As of release 8.5.0, replaced by
GetProxyUrl(String, Boolean, Boolean) |
java.lang.String |
GetProxyUrl(java.lang.String targetUrl,
java.lang.Boolean isAbsoluteTargetUrl,
java.lang.Boolean clientFollowsRedirect)
Service Category: Images
Service Description: Get a URL to proxy content relative to the configured origin server.
|
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, validateConfiguration
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, hasID
getDescription, getName
getID, getName
public static org.slf4j.Logger _logger
public static final java.lang.String CONFIG_TABLE_CONTENT_SOURCE_CONNECTION_INFO
public static final java.lang.String DYNAMIC_CONTENT
public static final java.lang.String URL
public static final java.lang.String TEST_URL
public static final java.lang.String IGNORE_SSL_ERRORS
public static final java.lang.String SSL_CONFIG_TABLE
public static final java.lang.String SSL_KEYSTORE_PATH
public static final java.lang.String SSL_KEYSTORE_PASSWORD
public static final java.lang.String SSL_TRUSTSTORE_PATH
public static final java.lang.String SSL_TRUSTSTORE_PASSWORD
public static final java.lang.String SESSION_USER_QUERY_PARAMETER
public static final java.lang.String SESSION_USER_CONFIGURATION_TABLE
public static final java.lang.String TIMEOUT
public static final java.lang.String USER_ID
public static final java.lang.String PASSWORD
public static final java.lang.String AUTHORIZATION_SERVER_ID
public static final java.lang.String AUTHENTICATION_TYPE
public static final java.lang.String AUTHENTICATION_TYPE_NONE
public static final java.lang.String AUTHENTICATION_TYPE_BASIC
public static final java.lang.String AUTHENTICATION_TYPE_SSO
public static final java.lang.String AUTHENTICATION_TYPE_SESSION_USER
public static final java.lang.String CONFIGURATION_SCOPE_TABLE_NAME
public static final java.lang.String SCOPE
@ThingworxExtensionApiMethod(since={6,6}) public ImagePrimitive getImage() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public byte[] GetImage() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetMimeType() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()
RootEntity
Returns the type of this entity.
getEntityType
in class RootEntity
@ThingworxExtensionApiMethod(since={7,4}, deprecatedSince={8,5}) @Deprecated public java.lang.String GetProxyUrl(java.lang.String targetUrl, java.lang.Boolean isAbsoluteTargetUrl) throws java.lang.Exception
GetProxyUrl(String, Boolean, Boolean)
targetUrl
- Actual URL of content to stream. Must be under the configured origin serverisAbsoluteTargetUrl
- Is the provided target URL an absolute URL or relative.java.lang.Exception
@ThingworxExtensionApiMethod(since={8,5}) public java.lang.String GetProxyUrl(java.lang.String targetUrl, java.lang.Boolean isAbsoluteTargetUrl, java.lang.Boolean clientFollowsRedirect) throws java.lang.Exception
targetUrl
- Actual URL of content to stream. Must be under the configured origin server - STRINGisAbsoluteTargetUrl
- Is the provided target URL an absolute URL or relative. - BOOLEANclientFollowsRedirect
- If the response of the proxied URL is of redirect type, then whether the client should call the redirected url or media entity.Set this flag value to true if client should follow the redirect rather than Media Entity - BOOLEANjava.lang.Exception
- If an error occurs@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,4}) public static MediaEntity fromJSON(org.json.JSONObject jsonObject) throws java.lang.Exception
java.lang.Exception
- If an error occurs