Package org.hippoecm.frontend.resource
Class JcrResourceStream
- java.lang.Object
-
- org.hippoecm.frontend.model.NodeModelWrapper<Void>
-
- org.hippoecm.frontend.resource.JcrResourceStream
-
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<Void>
,org.apache.wicket.util.io.IClusterable
,org.apache.wicket.util.resource.IResourceStream
,org.apache.wicket.util.watch.IModifiable
public class JcrResourceStream extends NodeModelWrapper<Void> implements org.apache.wicket.util.resource.IResourceStream
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hippoecm.frontend.model.NodeModelWrapper
nodeModel
-
-
Constructor Summary
Constructors Constructor Description JcrResourceStream(org.apache.wicket.model.IModel<Node> model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String
getContentType()
InputStream
getInputStream()
Locale
getLocale()
String
getStyle()
String
getVariation()
Instant
lastModifiedTime()
org.apache.wicket.util.lang.Bytes
length()
void
setLocale(Locale locale)
void
setStyle(String style)
void
setVariation(String variation)
-
Methods inherited from class org.hippoecm.frontend.model.NodeModelWrapper
detach, getNode, getNodeModel, getObject, setNodeModel, setObject
-
-
-
-
Constructor Detail
-
JcrResourceStream
public JcrResourceStream(org.apache.wicket.model.IModel<Node> model)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.wicket.util.resource.IResourceStream
- Throws:
IOException
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
getInputStream
public InputStream getInputStream() throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
- Specified by:
getInputStream
in interfaceorg.apache.wicket.util.resource.IResourceStream
- Throws:
org.apache.wicket.util.resource.ResourceStreamNotFoundException
-
length
public org.apache.wicket.util.lang.Bytes length()
- Specified by:
length
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocale
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
getStyle
public String getStyle()
- Specified by:
getStyle
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
setStyle
public void setStyle(String style)
- Specified by:
setStyle
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
getVariation
public String getVariation()
- Specified by:
getVariation
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
setVariation
public void setVariation(String variation)
- Specified by:
setVariation
in interfaceorg.apache.wicket.util.resource.IResourceStream
-
lastModifiedTime
public Instant lastModifiedTime()
- Specified by:
lastModifiedTime
in interfaceorg.apache.wicket.util.watch.IModifiable
-
-