|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.resource.AbstractResourceStream
org.apache.wicket.util.resource.XSLTResourceStream
public class XSLTResourceStream
IResourceStream that applies XSLT on an input IResourceStream. The XSL stylesheet
itself is also an IResourceStream. Override getParameters() to pass parameters
to the XSL stylesheet.
NOTE: this is an experimental feature which does not implement any kind of caching, use with
care, running an XSL transformation for every request is very expensive! Please have a look at
ZipResourceStream for an in-depth explanation of what needs to be done with respect to
caching.
| Constructor Summary | |
|---|---|
XSLTResourceStream(IResourceStream xsltResource,
IResourceStream xmlResource)
Construct. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the resource. |
String |
getContentType()
Returns always null |
InputStream |
getInputStream()
Gets the resource stream. |
protected Map<Object,Object> |
getParameters()
|
Time |
lastModifiedTime()
Returns always null |
Bytes |
length()
Gets the size of this resource |
| Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream |
|---|
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XSLTResourceStream(IResourceStream xsltResource,
IResourceStream xmlResource)
xsltResource - the XSL stylesheet as an IResourceStreamxmlResource - the input XML document as an IResourceStream| Method Detail |
|---|
protected Map<Object,Object> getParameters()
Map of XSLT parameters, appropriate for passing information to the XSL
stylesheet
public void close()
throws IOException
IResourceStream
IOExceptionIResourceStream.close()public String getContentType()
getContentType in interface IResourceStreamgetContentType in class AbstractResourceStreamIResourceStream.getContentType()
public InputStream getInputStream()
throws ResourceStreamNotFoundException
IResourceStream
ResourceStreamNotFoundExceptionIResourceStream.getInputStream()public Bytes length()
IResourceStream
length in interface IResourceStreamlength in class AbstractResourceStreamnull if unknownIResourceStream.length()public Time lastModifiedTime()
lastModifiedTime in interface IModifiablelastModifiedTime in class AbstractResourceStreamTime or
null if that information is not availableIModifiable.lastModifiedTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||