com.sapportals.wcm.protocol.webdav.httpext

Class ExtHandler

java.lang.Object
  extended by com.sapportals.wcm.protocol.webdav.httpext.ExtHandler

public class ExtHandler
extends Object

Handler for RFC2774 Extension checking.

Copyright (c) SAP AG 2004


Method Summary
 boolean checkMandatory(HttpServletRequest req)
          Check mandatory extensions in HTTP request
static ExtHandler createInstance(Set supported)
           
 String getHeader(HttpServletRequest req, Name name)
          Extract the value of on extension header field
 String getHeaderFieldPrefix(HttpServletRequest req, Name name)
          Extract the prefix of on extension header field
 List getHeaders(HttpServletRequest req, Name name)
          Extract the values of a multiple extension header field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static ExtHandler createInstance(Set supported)

checkMandatory

public boolean checkMandatory(HttpServletRequest req)
                       throws UnsupportedExtensionException
Check mandatory extensions in HTTP request

Parameters:
req - HTTP request
Returns:
whether mandatory extensions were present
Throws:
UnsupportedExtensionException

getHeaderFieldPrefix

public String getHeaderFieldPrefix(HttpServletRequest req,
                                   Name name)
Extract the prefix of on extension header field

Parameters:
req - HTTP request
name - externsion header field name
Returns:
value of the extension header field
Throws:
UnsupportedExtensionException

getHeader

public String getHeader(HttpServletRequest req,
                        Name name)
Extract the value of on extension header field

Parameters:
req - HTTP request
name - externsion header field name
Returns:
value of the extension header field
Throws:
UnsupportedExtensionException

getHeaders

public List getHeaders(HttpServletRequest req,
                       Name name)
Extract the values of a multiple extension header field

Parameters:
req - HTTP request
name - externsion header field name
Returns:
value of the extension header field
Throws:
UnsupportedExtensionException
Access Rights

This class can be accessed from:


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 2011 SAP AG Complete Copyright Notice