Get Cookies from ServletRequest
-
29-10-2019 - |
Pergunta
I'm using ServletRequestListener
to attach to new requests, get a ServletRequest
object and extract cookies from it.
I've noticed that only HTTPServletRequest
has cookies but I haven't found a connection between those two objects.
Is it okay to use
HttpServletRequest request = ((HttpServletRequest) FacesContext.getCurrentInstance()
.getExternalContext().getRequest());
to retrieve the request while in a RequestInitialized
method? (I do want to run on every request)
FYI - This is all done in a JSF 1.2 Application
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow