org.apache.wicket.resource
Class ContextRelativeResource
java.lang.Object
org.apache.wicket.Resource
org.apache.wicket.markup.html.WebResource
org.apache.wicket.resource.ContextRelativeResource
- All Implemented Interfaces:
- Serializable, IClusterable, IRequestListener, IResourceListener
public class ContextRelativeResource
- extends WebResource
Resource served from a file relative to the context root.
- Author:
- almaw
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextRelativeResource
public ContextRelativeResource(String pathRelativeToContextRoot)
- Construct.
- Parameters:
pathRelativeToContextRoot
-
getResourceStream
public IResourceStream getResourceStream()
- Description copied from class:
Resource
- Returns a new IResourceStream that provides all data for the request.
Despite its name, this method should return a new IResourceStream instance
each time it is invoked (otherwise the InputStream returned from the
IResourceStream would be at EOF when a second request is handled for the
same Resource).
The caller must invoke IResourceStream.close() when finished.
- Specified by:
getResourceStream
in class Resource
- Returns:
- a new IResourceStream instance for this Resource.
- See Also:
Resource.getResourceStream()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.