@Component(value="blMinifyResourceTransformer") public class MinifyResourceTransformer extends Object implements org.springframework.web.servlet.resource.ResourceTransformer, org.springframework.core.Ordered
ResourceTransformer that minifies
the resource. Only works with allowed extensions (".css" and ".js" by default).
ResourceMinificationService is used to
perform the minification.| Modifier and Type | Field and Description |
|---|---|
protected ResourceMinificationService |
minifyService |
| Constructor and Description |
|---|
MinifyResourceTransformer() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
setOrder(int order) |
org.springframework.core.io.Resource |
transform(javax.servlet.http.HttpServletRequest request,
org.springframework.core.io.Resource resource,
org.springframework.web.servlet.resource.ResourceTransformerChain transformerChain) |
protected ResourceMinificationService minifyService
public org.springframework.core.io.Resource transform(javax.servlet.http.HttpServletRequest request,
org.springframework.core.io.Resource resource,
org.springframework.web.servlet.resource.ResourceTransformerChain transformerChain)
throws IOException
transform in interface org.springframework.web.servlet.resource.ResourceTransformerIOExceptionpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
Copyright © 2018. All rights reserved.