org.openrdf.server.metadata.http
Class RequestHeader

java.lang.Object
  extended by org.openrdf.server.metadata.http.RequestHeader
Direct Known Subclasses:
Request

public class RequestHeader
extends Object

Utility class for HttpServletRequest.

Author:
James Leigh

Constructor Summary
RequestHeader(HttpServletRequest request)
           
 
Method Summary
 Collection<? extends MimeType> getAcceptable()
           
 String getAuthority()
           
 String getContentType()
           
 long getDateHeader(String name)
           
 String getHeader(String name)
           
 Enumeration getHeaderNames()
           
 Enumeration getHeaders(String name)
           
 int getMaxAge()
           
 int getMaxStale()
           
 String getMethod()
           
 int getMinFresh()
           
 String getPath()
           
 String getRequestURI()
           
 String getRequestURL()
           
 String getURI()
           
 List<String> getVary()
           
 Enumeration getVaryHeaders(String name)
           
 boolean invalidatesCache()
           
 boolean isMessageBody()
           
 boolean isNoCache()
           
 boolean isOnlyIfCache()
           
 boolean isSafe()
           
 boolean isStorable()
           
 ParsedURI parseURI(String uriSpec)
           
 String resolve(String url)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestHeader

public RequestHeader(HttpServletRequest request)
Method Detail

getAcceptable

public Collection<? extends MimeType> getAcceptable()
                                             throws MimeTypeParseException
Throws:
MimeTypeParseException

getContentType

public String getContentType()

getDateHeader

public long getDateHeader(String name)

resolve

public String resolve(String url)

getHeader

public String getHeader(String name)

getHeaderNames

public Enumeration getHeaderNames()

getVaryHeaders

public Enumeration getVaryHeaders(String name)

getHeaders

public Enumeration getHeaders(String name)

getMaxAge

public int getMaxAge()

getMinFresh

public int getMinFresh()

getMaxStale

public int getMaxStale()

isStorable

public boolean isStorable()

isSafe

public boolean isSafe()

invalidatesCache

public boolean invalidatesCache()

isNoCache

public boolean isNoCache()

isOnlyIfCache

public boolean isOnlyIfCache()

getMethod

public String getMethod()

getRequestURI

public String getRequestURI()

getRequestURL

public String getRequestURL()

getURI

public String getURI()

parseURI

public ParsedURI parseURI(String uriSpec)

getVary

public List<String> getVary()

isMessageBody

public boolean isMessageBody()

toString

public String toString()
Overrides:
toString in class Object

getAuthority

public String getAuthority()

getPath

public String getPath()


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.