make stylesheet final in StaticHttpContentFactory
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
9270e62f78
commit
60656ebb72
|
@ -20,12 +20,7 @@ import org.eclipse.jetty.util.resource.Resource;
|
||||||
public class StaticHttpContentFactory implements HttpContent.Factory
|
public class StaticHttpContentFactory implements HttpContent.Factory
|
||||||
{
|
{
|
||||||
private final HttpContent.Factory _factory;
|
private final HttpContent.Factory _factory;
|
||||||
private Resource _styleSheet;
|
private final Resource _styleSheet;
|
||||||
|
|
||||||
public StaticHttpContentFactory(HttpContent.Factory factory)
|
|
||||||
{
|
|
||||||
_factory = factory;
|
|
||||||
}
|
|
||||||
|
|
||||||
public StaticHttpContentFactory(HttpContent.Factory factory, Resource styleSheet)
|
public StaticHttpContentFactory(HttpContent.Factory factory, Resource styleSheet)
|
||||||
{
|
{
|
||||||
|
@ -33,14 +28,6 @@ public class StaticHttpContentFactory implements HttpContent.Factory
|
||||||
_styleSheet = styleSheet;
|
_styleSheet = styleSheet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param stylesheet The location of the stylesheet to be used as a String.
|
|
||||||
*/
|
|
||||||
public void setStyleSheet(Resource stylesheet)
|
|
||||||
{
|
|
||||||
_styleSheet = stylesheet;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Returns the stylesheet as a Resource.
|
* @return Returns the stylesheet as a Resource.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue