Package org.exoplatform.portal.resource
Interface ResourceRenderer
- All Known Implementing Classes:
SkinResourceRequestHandler.SkinResourceRenderer
public interface ResourceRenderer
An interface defining the renderer contract for a resource.
-
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.commons.utils.BinaryOutputReturns an output stream for performing resource rendering.voidsetExpiration(long seconds) Instruct the renderer about the expiration time in seconds.
-
Method Details
-
getOutput
org.exoplatform.commons.utils.BinaryOutput getOutput()Returns an output stream for performing resource rendering.- Returns:
- a stream
-
setExpiration
void setExpiration(long seconds) Instruct the renderer about the expiration time in seconds. A non positive value means that no caching should be performed. The expiration value is relative to the date of the request.- Parameters:
seconds- the value in seconds
-