|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.northfuse.resources.ResourceHandlerImpl
public abstract class ResourceHandlerImpl
| Method Summary | |
|---|---|
org.springframework.core.io.Resource |
getAggregatedResource()
Aggregates the resource, creating a new resource. |
java.lang.String |
getMapping()
Gets the mapping of this resource. |
org.springframework.http.MediaType |
getMediaType()
Gets the media type. |
void |
init()
Initialize (cache) resource. |
boolean |
isDebug()
Gets whether or not this is in debug mode. |
void |
setDebug(boolean debug)
Sets debug mode. |
void |
setMapping(java.lang.String mapping)
Sets the mapping. |
void |
setResourceGenerator(ResourceGenerator resourceGenerator)
Sets the resource generator. |
protected abstract java.io.InputStream |
wrapWithMinify(java.io.InputStream is)
Wraps the input stream with an input stream that minifies it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final void setDebug(boolean debug)
debug - Whether or not to enable debug modepublic final boolean isDebug()
isDebug in interface ResourceHandlerpublic final java.lang.String getMapping()
getMapping in interface ResourceHandlerpublic final void setMapping(java.lang.String mapping)
mapping - The mappingpublic final void setResourceGenerator(ResourceGenerator resourceGenerator)
resourceGenerator - The resource generatorpublic final org.springframework.core.io.Resource getAggregatedResource()
getAggregatedResource in interface ResourceHandler
@PostConstruct
public final void init()
throws java.io.IOException
java.io.IOException - IOException
protected abstract java.io.InputStream wrapWithMinify(java.io.InputStream is)
throws java.io.IOException
is - The input stream to wrap
java.io.IOException - If an io exception occurs.public final org.springframework.http.MediaType getMediaType()
getMediaType in interface ResourceHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||