org.apache.hadoop.yarn.server.timeline.webapp
Class CrossOriginFilter

java.lang.Object
  extended by org.apache.hadoop.yarn.server.timeline.webapp.CrossOriginFilter
All Implemented Interfaces:
javax.servlet.Filter

public class CrossOriginFilter
extends Object
implements javax.servlet.Filter


Field Summary
static String ALLOWED_HEADERS
           
static String ALLOWED_HEADERS_DEFAULT
           
static String ALLOWED_METHODS
           
static String ALLOWED_METHODS_DEFAULT
           
static String ALLOWED_ORIGINS
           
static String ALLOWED_ORIGINS_DEFAULT
           
static String MAX_AGE
           
static String MAX_AGE_DEFAULT
           
 
Constructor Summary
CrossOriginFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOWED_ORIGINS

public static final String ALLOWED_ORIGINS
See Also:
Constant Field Values

ALLOWED_ORIGINS_DEFAULT

public static final String ALLOWED_ORIGINS_DEFAULT
See Also:
Constant Field Values

ALLOWED_METHODS

public static final String ALLOWED_METHODS
See Also:
Constant Field Values

ALLOWED_METHODS_DEFAULT

public static final String ALLOWED_METHODS_DEFAULT
See Also:
Constant Field Values

ALLOWED_HEADERS

public static final String ALLOWED_HEADERS
See Also:
Constant Field Values

ALLOWED_HEADERS_DEFAULT

public static final String ALLOWED_HEADERS_DEFAULT
See Also:
Constant Field Values

MAX_AGE

public static final String MAX_AGE
See Also:
Constant Field Values

MAX_AGE_DEFAULT

public static final String MAX_AGE_DEFAULT
See Also:
Constant Field Values
Constructor Detail

CrossOriginFilter

public CrossOriginFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2014 Apache Software Foundation. All Rights Reserved.