com.guiseframework.platform.web
Class GuiseHTTPServlet.IE6CSSResource

java.lang.Object
  extended by com.globalmentor.net.DefaultResource
      extended by com.guiseframework.platform.web.GuiseHTTPServlet.CSSResource
          extended by com.guiseframework.platform.web.GuiseHTTPServlet.IE6CSSResource
All Implemented Interfaces:
com.globalmentor.net.Resource, java.lang.Comparable<com.globalmentor.net.Resource>
Enclosing class:
GuiseHTTPServlet

protected static class GuiseHTTPServlet.IE6CSSResource
extends GuiseHTTPServlet.CSSResource

A resource that represents an IE6 CSS file, decorating an existing resource. This version processes resources of type text/css to work around IE6 bugs, if IE6 is the user agent.

Author:
Garret Wilson

Field Summary
 
Fields inherited from interface com.globalmentor.net.Resource
URI_PROPERTY_NAME
 
Constructor Summary
GuiseHTTPServlet.IE6CSSResource(com.globalmentor.net.http.DefaultHTTPServlet.HTTPServletResource resource)
          HTTP servlet resource constructor.
 
Method Summary
protected  CSSStylesheet loadStylesheet(HttpServletRequest request, GuiseCSSProcessor cssProcessor)
          Loads a CSS stylesheet from the requested resource.
 
Methods inherited from class com.guiseframework.platform.web.GuiseHTTPServlet.CSSResource
loadBytes
 
Methods inherited from class com.globalmentor.net.DefaultResource
compareTo, equals, getURI, hashCode, setURI, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.globalmentor.net.Resource
getURI
 

Constructor Detail

GuiseHTTPServlet.IE6CSSResource

public GuiseHTTPServlet.IE6CSSResource(com.globalmentor.net.http.DefaultHTTPServlet.HTTPServletResource resource)
HTTP servlet resource constructor.

Parameters:
resource - The decorated HTTP servlet resource.
Throws:
java.lang.IllegalArgumentException - if the given resource is null.
Method Detail

loadStylesheet

protected CSSStylesheet loadStylesheet(HttpServletRequest request,
                                       GuiseCSSProcessor cssProcessor)
                                throws java.io.IOException
Loads a CSS stylesheet from the requested resource.

Overrides:
loadStylesheet in class GuiseHTTPServlet.CSSResource
Parameters:
request - The HTTP request in response to which the bytes are being retrieved.
cssProcessor - The processor to use in processing the stylesheet.
Returns:
A stylesheet object representing the resource.
Throws:
java.io.IOException - if there is an error retrieving the bytes.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.