@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class ContentLoader extends Resource
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
ContentLoader() |
Modifier and Type | Method and Description |
---|---|
void |
Delete(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Delete
Service Description: Invoke an HTTP delete request on a URL.
|
java.lang.String |
GetCookies(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Cookies
Service Description: Issue a URL call and get the returned cookies back.
|
org.json.JSONObject |
GetJSON(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: JSON
Service Description: Get json content from a URL.
|
java.lang.String |
GetText(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme,
java.lang.Boolean appendHeader)
Service Category: Text
Service Description: Get text content from a URL.
|
org.w3c.dom.Document |
GetXML(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: XML
Service Description: Get XML content from a URL.
|
byte[] |
LoadBinary(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Binary
Service Description: Load binary content from a URL.
|
byte[] |
LoadImage(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Image
Service Description: Load image content from a URL.
|
org.json.JSONObject |
LoadJSON(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: JSON
Service Description: Load JSON content from a URL.
|
java.lang.String |
LoadMediaEntity(java.lang.String name,
java.lang.String description,
TagCollection tags,
java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Image
Service Description: Load an image via URL and create/update a media entity.
|
java.lang.String |
LoadText(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme,
java.lang.Boolean appendHeader)
Service Category: Text
Service Description: Load text content from a URL.
|
org.w3c.dom.Document |
LoadXML(java.lang.String url,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: XML
Service Description: Load XML Content from a URL.
|
byte[] |
PostBinary(java.lang.String url,
byte[] content,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Binary
Service Description: Load binary content from a URL via HTTP POST.
|
byte[] |
PostImage(java.lang.String url,
byte[] content,
java.lang.String mimeType,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Image
Service Description: Load Image content from a URL via HTTP POST.
|
org.json.JSONObject |
PostJSON(java.lang.String url,
org.json.JSONObject content,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: JSON
Service Description: Load JSON content from a URL via HTTP POST.
|
org.json.JSONObject |
PostMultipart(java.lang.String url,
java.lang.String repository,
java.lang.String pathOnRepository,
java.lang.Object partsToSend,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Multipart
Service Description: Multipart data upload from Thingworx to and external target via HTTP POST.
|
java.lang.String |
PostText(java.lang.String url,
java.lang.String content,
java.lang.String contentType,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Text
Service Description: Load text content from a URL via HTTP POST.
|
org.w3c.dom.Document |
PostXML(java.lang.String url,
org.w3c.dom.Document content,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: XML
Service Description: Load XML content from a URL via HTTP POST.
|
byte[] |
PutBinary(java.lang.String url,
byte[] content,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Binary
Service Description: Load binary content from a URL via HTTP PUT.
|
org.json.JSONObject |
PutJSON(java.lang.String url,
org.json.JSONObject content,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: JSON
Service Description: Load JSON content from a URL via HTTP PUT.
|
java.lang.String |
PutText(java.lang.String url,
java.lang.String content,
java.lang.String contentType,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: Text
Service Description: Load text content from a URL via HTTP PUT.
|
org.w3c.dom.Document |
PutXML(java.lang.String url,
org.w3c.dom.Document content,
java.lang.String username,
java.lang.String password,
org.json.JSONObject headers,
java.lang.Boolean ignoreSSLErrors,
java.lang.Boolean withCookies,
java.lang.Double timeout,
java.lang.Boolean useNTLM,
java.lang.String workstation,
java.lang.String domain,
java.lang.Boolean useProxy,
java.lang.String proxyHost,
java.lang.Integer proxyPort,
java.lang.String proxyScheme)
Service Category: XML
Service Description: Load XML content from a URL via HTTP PUT.
|
getEntityType
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
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetCookies(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void Delete(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetText(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean appendHeader) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGappendHeader
- Append header in response; optional: default value is true - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document GetXML(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject GetJSON(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document LoadXML(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String LoadText(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean appendHeader) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGappendHeader
- Append header in response; optional: default value is true - BOOLEANjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public byte[] LoadImage(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public byte[] LoadBinary(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject LoadJSON(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String PostText(java.lang.String url, java.lang.String content, java.lang.String contentType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as string - STRINGcontentType
- Posted content type as string - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={7,2,1}) public org.json.JSONObject PostMultipart(java.lang.String url, java.lang.String repository, java.lang.String pathOnRepository, java.lang.Object partsToSend, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGrepository
- Repository to get file from to upload - STRINGpathOnRepository
- Path on repository to file - STRINGpartsToSend
- Infotable where each field is a part to send - INFOTABLEusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public byte[] PostImage(java.lang.String url, byte[] content, java.lang.String mimeType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as image - IMAGEmimeType
- Mime Type - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public byte[] PostBinary(java.lang.String url, byte[] content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as image - BLOBusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject PostJSON(java.lang.String url, org.json.JSONObject content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as JSON object - JSONusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document PostXML(java.lang.String url, org.w3c.dom.Document content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as XML document. The xml content must start with an xml declaration, ie <?xml version="1.0" encoding="UTF-8"?> - XMLusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject PutJSON(java.lang.String url, org.json.JSONObject content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as JSON object - JSONusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public byte[] PutBinary(java.lang.String url, byte[] content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as image - BLOBusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String PutText(java.lang.String url, java.lang.String content, java.lang.String contentType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as string - STRINGcontentType
- Posted content type as string - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document PutXML(java.lang.String url, org.w3c.dom.Document content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
url
- URL to load - STRINGcontent
- Posted content as XML document - XMLusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is
expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the
header parsing errors in the logs.
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String LoadMediaEntity(java.lang.String name, java.lang.String description, TagCollection tags, java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
name
- Name of the media entity to save or update - STRINGdescription
- Description for the media entity to save - STRINGtags
- Tags for the media entity to save - TAGSurl
- URL to load an image - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGjava.lang.Exception
- If an error occurs