com.sapportals.wcm.protocol.webdav

Class WDHttp

java.lang.Object
  extended by com.sapportals.wcm.protocol.webdav.WDHttp

public class WDHttp
extends Object

Maps HTTP codes to ResourceExceptions.

Copyright (c) SAP AG 2001-2005


Constructor Summary
WDHttp()
           
 
Method Summary
static ResourceException exception(com.sapportals.wcm.util.uri.RID rid, int httpCode, Name condition, String message)
           
static ResourceException exception(com.sapportals.wcm.util.uri.RID rid, int httpCode, String message)
          Construct a resource exception for the given HTTP response code and message.
static ResourceException exception(com.sapportals.wcm.util.uri.RID rid, com.sapportals.wcm.util.http.IResponse response)
          Construct a resource exception for the given HTTP response code and message.
static ResourceException exception(UriContext uc, com.sapportals.wcm.util.http.IResponse response, String message)
          Construct a resource exception for the give HTTP response code and message.
static ResourceException exception(UriContext uc, com.sapportals.wcm.util.http.IResponse response, String message, com.sapportals.wcm.util.uri.RID target)
          Construct a resource exception for the give HTTP response code and message.
static ResourceException getError(com.sapportals.wcm.util.http.IResponse response, UriContext uc, String message, com.sapportals.wcm.util.uri.RID target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WDHttp

public WDHttp()
Method Detail

exception

public static ResourceException exception(UriContext uc,
                                          com.sapportals.wcm.util.http.IResponse response,
                                          String message)
Construct a resource exception for the give HTTP response code and message.

Parameters:
uc - UriContext of the concerned resource
response - from the remote system
message - for this error
Returns:
new ResourceException

exception

public static ResourceException exception(UriContext uc,
                                          com.sapportals.wcm.util.http.IResponse response,
                                          String message,
                                          com.sapportals.wcm.util.uri.RID target)
Construct a resource exception for the give HTTP response code and message.

Parameters:
uc - UriContext of the concerned resource
response - from the remote system
message - for this error
Returns:
new ResourceException

exception

public static ResourceException exception(com.sapportals.wcm.util.uri.RID rid,
                                          int httpCode,
                                          String message)
Construct a resource exception for the given HTTP response code and message.

Parameters:
rid - of the concerned resource
httpCode - from the remote system
message - for this error
Returns:
new ResourceException

exception

public static ResourceException exception(com.sapportals.wcm.util.uri.RID rid,
                                          int httpCode,
                                          Name condition,
                                          String message)

exception

public static ResourceException exception(com.sapportals.wcm.util.uri.RID rid,
                                          com.sapportals.wcm.util.http.IResponse response)
Construct a resource exception for the given HTTP response code and message.

Parameters:
rid - of the concerned resource
response - for this response
Returns:
new ResourceException

getError

public static ResourceException getError(com.sapportals.wcm.util.http.IResponse response,
                                         UriContext uc,
                                         String message,
                                         com.sapportals.wcm.util.uri.RID target)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2011 SAP AG Complete Copyright Notice