|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.urlcontentaccess.URLContentAccess
public final class URLContentAccess
Handles the content transfer for external URL resources. Supported protocols: http, https, ftp, file. A proxy and a list of hosts that must not use the proxy can be configured. Using https through a proxy is not supported.
| Constructor Summary | |
|---|---|
URLContentAccess()
|
|
| Method Summary | |
|---|---|
static IURLContentAccess |
getInstance()
Returns a reference to the single instance. |
IURLContent |
readContent(String url,
boolean useCache)
Read content |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLContentAccess()
| Method Detail |
|---|
public IURLContent readContent(String url,
boolean useCache)
throws URLContentAccessException
readContent in interface IURLContentAccessurl - TBD: Description of the incoming method parameteruseCache - TBD: Description of the incoming method parameter
URLContentAccessException - Exception raised in failure situation
public IURLContent readContent(String cacheID,
String url,
boolean useCache)
throws URLContentAccessException
useCache has no effect).
readContent in interface IURLContentAccesscacheID - The key to store/access the content in the cacheurl - A full URLuseCache - If the cache must be used
URLContentAccessException - Exception raised in failure situation
public void storeContent(String url,
InputStream data,
String mimeType,
long contentLength,
String fileName,
Properties httpHeaders,
Properties fileHeaders,
boolean useMimeMultipart,
String user,
String pass)
throws URLContentAccessException
storeContent in interface IURLContentAccessurl - 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 null
URLContentAccessException - Exception raised in failure situation
public static IURLContentAccess getInstance()
throws URLContentAccessException
URLContentAccessException| Access 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
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||