public class SvgToPngTranscoderFilter extends Object implements javax.servlet.Filter
?format=PNG
then this filter will return a proper PNG image
instead of an SVG. size
parameter is also supported.
Example: /images/icons/priorities/minor.svg?format=PNG&size=xxxlarge@3x
.
If there is no format=PNG
parameter or the requested image
does not have the .svg
extension then the filter does nothing.
Constructor and Description |
---|
SvgToPngTranscoderFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2002-2021 Atlassian. All Rights Reserved.