|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.security.servletfilters.FilterRestApiFlash
public class FilterRestApiFlash
Determines if the client is a flash player (based on a query string value of 'flash' being set to true) and wraps the response to guarantee only 2xx range response codes. Responses which would normally return with a status outside of the 2xx range are updated such that the response code is set to 200 and the response body ends with the string "::ERROR(code)" where code is replaced by the actual response code.
| Constructor Summary | |
|---|---|
FilterRestApiFlash()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Required Filter method |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
Perform flash client response filtering |
void |
init(javax.servlet.FilterConfig arg0)
Required Filter method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterRestApiFlash()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOException
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||