org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class RedirectedConversationAwareExternalContext

java.lang.Object
  extended by javax.faces.context.ExternalContext
      extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.RedirectedConversationAwareExternalContext

public class RedirectedConversationAwareExternalContext
extends javax.faces.context.ExternalContext

ExternalContext which is needed for the window-id support


Field Summary
 
Fields inherited from class javax.faces.context.ExternalContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
RedirectedConversationAwareExternalContext(javax.faces.context.ExternalContext wrapped)
          Constructor for wrapping the given ExternalContext
 
Method Summary
 void dispatch(String s)
          
 String encodeActionURL(String s)
          Adds the current window-id to the URL (if permitted)
 String encodeNamespace(String s)
          
 String encodeResourceURL(String s)
          
 Map<String,Object> getApplicationMap()
          
 String getAuthType()
          
 Object getContext()
          
 String getInitParameter(String s)
          
 Map getInitParameterMap()
          
 String getRemoteUser()
          
 Object getRequest()
          
 String getRequestCharacterEncoding()
          
 String getRequestContentType()
          
 String getRequestContextPath()
          
 Map<String,Object> getRequestCookieMap()
          
 Map<String,String> getRequestHeaderMap()
          
 Map<String,String[]> getRequestHeaderValuesMap()
          
 Locale getRequestLocale()
          
 Iterator<Locale> getRequestLocales()
          
 Map<String,Object> getRequestMap()
          
 Map<String,String> getRequestParameterMap()
          
 Iterator<String> getRequestParameterNames()
          
 Map<String,String[]> getRequestParameterValuesMap()
          
 String getRequestPathInfo()
          
 String getRequestServletPath()
          
 URL getResource(String s)
          
 InputStream getResourceAsStream(String s)
          
 Set<String> getResourcePaths(String s)
          
 Object getResponse()
          
 String getResponseCharacterEncoding()
          
 String getResponseContentType()
          
 Object getSession(boolean b)
          
 Map<String,Object> getSessionMap()
          
 Principal getUserPrincipal()
          
 boolean isUserInRole(String s)
          
 void log(String s)
          
 void log(String s, Throwable throwable)
          
 void redirect(String url)
          Triggers a redirect which is aware of the current window and preserves the FacesMessages.
 void setRequest(Object o)
          
 void setRequestCharacterEncoding(String s)
          
 void setResponse(Object o)
          
 void setResponseCharacterEncoding(String s)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectedConversationAwareExternalContext

public RedirectedConversationAwareExternalContext(javax.faces.context.ExternalContext wrapped)
Constructor for wrapping the given ExternalContext

Parameters:
wrapped - external-context which should be wrapped
Method Detail

encodeActionURL

public String encodeActionURL(String s)
Adds the current window-id to the URL (if permitted)

Specified by:
encodeActionURL in class javax.faces.context.ExternalContext

redirect

public void redirect(String url)
              throws IOException
Triggers a redirect which is aware of the current window and preserves the FacesMessages.

Specified by:
redirect in class javax.faces.context.ExternalContext
Throws:
IOException

dispatch

public void dispatch(String s)
              throws IOException

Specified by:
dispatch in class javax.faces.context.ExternalContext
Throws:
IOException

encodeNamespace

public String encodeNamespace(String s)

Specified by:
encodeNamespace in class javax.faces.context.ExternalContext

encodeResourceURL

public String encodeResourceURL(String s)

Specified by:
encodeResourceURL in class javax.faces.context.ExternalContext

getApplicationMap

public Map<String,Object> getApplicationMap()

Specified by:
getApplicationMap in class javax.faces.context.ExternalContext

getAuthType

public String getAuthType()

Specified by:
getAuthType in class javax.faces.context.ExternalContext

getContext

public Object getContext()

Specified by:
getContext in class javax.faces.context.ExternalContext

getInitParameter

public String getInitParameter(String s)

Specified by:
getInitParameter in class javax.faces.context.ExternalContext

getInitParameterMap

public Map getInitParameterMap()

Specified by:
getInitParameterMap in class javax.faces.context.ExternalContext

getRemoteUser

public String getRemoteUser()

Specified by:
getRemoteUser in class javax.faces.context.ExternalContext

getRequest

public Object getRequest()

Specified by:
getRequest in class javax.faces.context.ExternalContext

getRequestCharacterEncoding

public String getRequestCharacterEncoding()

Overrides:
getRequestCharacterEncoding in class javax.faces.context.ExternalContext

getRequestContentType

public String getRequestContentType()

Overrides:
getRequestContentType in class javax.faces.context.ExternalContext

getRequestContextPath

public String getRequestContextPath()

Specified by:
getRequestContextPath in class javax.faces.context.ExternalContext

getRequestCookieMap

public Map<String,Object> getRequestCookieMap()

Specified by:
getRequestCookieMap in class javax.faces.context.ExternalContext

getRequestHeaderMap

public Map<String,String> getRequestHeaderMap()

Specified by:
getRequestHeaderMap in class javax.faces.context.ExternalContext

getRequestHeaderValuesMap

public Map<String,String[]> getRequestHeaderValuesMap()

Specified by:
getRequestHeaderValuesMap in class javax.faces.context.ExternalContext

getRequestLocale

public Locale getRequestLocale()

Specified by:
getRequestLocale in class javax.faces.context.ExternalContext

getRequestLocales

public Iterator<Locale> getRequestLocales()

Specified by:
getRequestLocales in class javax.faces.context.ExternalContext

getRequestMap

public Map<String,Object> getRequestMap()

Specified by:
getRequestMap in class javax.faces.context.ExternalContext

getRequestParameterMap

public Map<String,String> getRequestParameterMap()

Specified by:
getRequestParameterMap in class javax.faces.context.ExternalContext

getRequestParameterNames

public Iterator<String> getRequestParameterNames()

Specified by:
getRequestParameterNames in class javax.faces.context.ExternalContext

getRequestParameterValuesMap

public Map<String,String[]> getRequestParameterValuesMap()

Specified by:
getRequestParameterValuesMap in class javax.faces.context.ExternalContext

getRequestPathInfo

public String getRequestPathInfo()

Specified by:
getRequestPathInfo in class javax.faces.context.ExternalContext

getRequestServletPath

public String getRequestServletPath()

Specified by:
getRequestServletPath in class javax.faces.context.ExternalContext

getResource

public URL getResource(String s)
                throws MalformedURLException

Specified by:
getResource in class javax.faces.context.ExternalContext
Throws:
MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String s)

Specified by:
getResourceAsStream in class javax.faces.context.ExternalContext

getResourcePaths

public Set<String> getResourcePaths(String s)

Specified by:
getResourcePaths in class javax.faces.context.ExternalContext

getResponse

public Object getResponse()

Specified by:
getResponse in class javax.faces.context.ExternalContext

getResponseContentType

public String getResponseContentType()

Overrides:
getResponseContentType in class javax.faces.context.ExternalContext

getSession

public Object getSession(boolean b)

Specified by:
getSession in class javax.faces.context.ExternalContext

getSessionMap

public Map<String,Object> getSessionMap()

Specified by:
getSessionMap in class javax.faces.context.ExternalContext

getUserPrincipal

public Principal getUserPrincipal()

Specified by:
getUserPrincipal in class javax.faces.context.ExternalContext

setRequest

public void setRequest(Object o)

Overrides:
setRequest in class javax.faces.context.ExternalContext

setRequestCharacterEncoding

public void setRequestCharacterEncoding(String s)
                                 throws UnsupportedEncodingException

Overrides:
setRequestCharacterEncoding in class javax.faces.context.ExternalContext
Throws:
UnsupportedEncodingException

setResponse

public void setResponse(Object o)

Overrides:
setResponse in class javax.faces.context.ExternalContext

setResponseCharacterEncoding

public void setResponseCharacterEncoding(String s)

Overrides:
setResponseCharacterEncoding in class javax.faces.context.ExternalContext

getResponseCharacterEncoding

public String getResponseCharacterEncoding()

Overrides:
getResponseCharacterEncoding in class javax.faces.context.ExternalContext

isUserInRole

public boolean isUserInRole(String s)

Specified by:
isUserInRole in class javax.faces.context.ExternalContext

log

public void log(String s)

Specified by:
log in class javax.faces.context.ExternalContext

log

public void log(String s,
                Throwable throwable)

Specified by:
log in class javax.faces.context.ExternalContext


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.