public interface IURLContentAccess
Modifier and Type | Method and Description |
---|---|
IURLContent |
readContent(String url,
boolean useCache)
Read the content for a URL resource.
|
IURLContent |
readContent(String cacheID,
String url,
boolean useCache)
Read the content for a URL resource.
|
void |
storeContent(String url,
InputStream data,
String mimeType,
long contentLength,
String fileName,
Properties httpHeaders,
Properties fileHeaders,
boolean useMimeMultipart,
String user,
String pass)
Store content on a HTTP Server
|
IURLContent readContent(String url, boolean useCache) throws URLContentAccessException
url
- A full URLuseCache
- If the cache must be usedURLContentAccessException
- Exception raised in failure situationIURLContent readContent(String cacheID, String url, boolean useCache) throws URLContentAccessException
useCache
has no effect).cacheID
- The key to store/access the content in the cacheurl
- A full URLuseCache
- If the cache must be usedURLContentAccessException
- Exception raised in failure situationvoid storeContent(String url, InputStream data, String mimeType, long contentLength, String fileName, Properties httpHeaders, Properties fileHeaders, boolean useMimeMultipart, String user, String pass) throws URLContentAccessException
url
- The URLdata
- The data to sendmimeType
- The content typecontentLength
- The content lengthfileName
- The file name, can be nullhttpHeaders
- Additional HTTP header, can be nullfileHeaders
- File header lines, can be nulluseMimeMultipart
- true: send a mime multipart POST, false: PUT
requestuser
- Username for HTTP BASIC authentication, can be nullpass
- PAssword for HTTP BASIC authentication, can be nullURLContentAccessException
- Exception raised in failure situationAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice