Package org.apache.unomi.web
Class HttpUtils
- java.lang.Object
-
- org.apache.unomi.web.HttpUtils
-
public class HttpUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setupCORSHeaders(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.ServletResponse response)
Setup CORS headers as soon as possible so that errors are not misconstrued on the client for CORS errors
-
-
-
Method Detail
-
setupCORSHeaders
public static void setupCORSHeaders(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.ServletResponse response) throws IOException
Setup CORS headers as soon as possible so that errors are not misconstrued on the client for CORS errors- Parameters:
httpServletRequest
- the http servlet request object to useresponse
- the http servlet response object to use- Throws:
IOException
- raised if there was a problem reading from the request or writing to the response
-
-