com.jalios.jcms.webdav
Class IfHeaderParser

java.lang.Object
  extended by com.jalios.jcms.webdav.IfHeaderParser

public class IfHeaderParser
extends Object

Parser class for the If header described in RFC 2518 (http://www.ietf.org/rfc/rfc2518.txt) ABNF :

 If = "If" ":" ( 1*No-tag-list | 1*Tagged-list)
 No-tag-list = List
 Tagged-list = Resource 1*List
 Resource = Coded-URL
 List = "(" 1*(["Not"](State-token | "[" entity-tag "]")) ")"
 State-token = Coded-URL
 Coded-URL = "<" absoluteURI ">"
 


Nested Class Summary
static class IfHeaderParser.Condition
           
static class IfHeaderParser.EntityTag
           
static class IfHeaderParser.IfParseException
           
static class IfHeaderParser.StateToken
           
 
Constructor Summary
IfHeaderParser()
           
 
Method Summary
static List<IfHeaderParser.Condition> parse(String ifHeader)
          Parse a WebDAV If Header
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfHeaderParser

public IfHeaderParser()
Method Detail

parse

public static List<IfHeaderParser.Condition> parse(String ifHeader)
                                            throws IfHeaderParser.IfParseException
Parse a WebDAV If Header

Parameters:
ifHeader - the if header to parse, must not be null
Returns:
a List of Condition, never return null
Throws:
IfHeaderParser.IfParseException


Copyright © 2001-2010 Jalios SA. All Rights Reserved.