pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.webdav.request
Class IfHeader

java.lang.Object
  extended by org.torweg.pulse.webdav.request.IfHeader

public class IfHeader
extends java.lang.Object

represents an If-header as specified in RFC4918 section 10.4. (http://webdav.org/specs/rfc4918.html#HEADER_If).

Version:
$Revision: 1432 $
Author:
Thomas Weber

Constructor Summary
IfHeader(javax.servlet.http.HttpServletRequest req)
          extracts the If-Header from the given request.
 
Method Summary
 boolean matches(java.net.URI resource, DAVStore store)
          checks whether the given resource matches the If-header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfHeader

public IfHeader(javax.servlet.http.HttpServletRequest req)
extracts the If-Header from the given request.

Parameters:
req - the request
Method Detail

matches

public final boolean matches(java.net.URI resource, DAVStore store)
                      throws java.io.IOException
checks whether the given resource matches the If-header.

Parameters:
resource - the resource to check
store - the DAVStore
Returns:
true, if and only if the resource matches the condition. Otherwise false.
Throws:
java.io.IOException - on errors accessing the DAVStore