javax.faces.context
Class ExternalContext

java.lang.Object
  extended by javax.faces.context.ExternalContext

public abstract class ExternalContext
extends Object

see Javadoc of JSF Specification

Version:
$Revision: 676278 $ $Date: 2008-07-13 03:35:04 -0500 (Sun, 13 Jul 2008) $
Author:
Manfred Geiler (latest modification by $Author: skitching $)

Field Summary
static String BASIC_AUTH
           
static String CLIENT_CERT_AUTH
           
static String DIGEST_AUTH
           
static String FORM_AUTH
           
 
Constructor Summary
ExternalContext()
           
 
Method Summary
abstract  void dispatch(String path)
           
abstract  String encodeActionURL(String url)
           
abstract  String encodeNamespace(String name)
           
abstract  String encodeResourceURL(String url)
           
abstract  Map getApplicationMap()
           
abstract  String getAuthType()
           
abstract  Object getContext()
           
abstract  String getInitParameter(String name)
           
abstract  Map getInitParameterMap()
           
abstract  String getRemoteUser()
           
abstract  Object getRequest()
           
abstract  String getRequestContextPath()
           
abstract  Map getRequestCookieMap()
           
abstract  Map getRequestHeaderMap()
           
abstract  Map getRequestHeaderValuesMap()
           
abstract  Locale getRequestLocale()
           
abstract  Iterator getRequestLocales()
           
abstract  Map getRequestMap()
           
abstract  Map getRequestParameterMap()
           
abstract  Iterator getRequestParameterNames()
           
abstract  Map getRequestParameterValuesMap()
           
abstract  String getRequestPathInfo()
           
abstract  String getRequestServletPath()
           
abstract  URL getResource(String path)
           
abstract  InputStream getResourceAsStream(String path)
           
abstract  Set getResourcePaths(String path)
           
abstract  Object getResponse()
           
abstract  Object getSession(boolean create)
           
abstract  Map getSessionMap()
           
abstract  Principal getUserPrincipal()
           
abstract  boolean isUserInRole(String role)
           
abstract  void log(String message)
           
abstract  void log(String message, Throwable exception)
           
abstract  void redirect(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASIC_AUTH

public static final String BASIC_AUTH
See Also:
Constant Field Values

CLIENT_CERT_AUTH

public static final String CLIENT_CERT_AUTH
See Also:
Constant Field Values

DIGEST_AUTH

public static final String DIGEST_AUTH
See Also:
Constant Field Values

FORM_AUTH

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

ExternalContext

public ExternalContext()
Method Detail

dispatch

public abstract void dispatch(String path)
                       throws IOException
Throws:
IOException

encodeActionURL

public abstract String encodeActionURL(String url)

encodeNamespace

public abstract String encodeNamespace(String name)

encodeResourceURL

public abstract String encodeResourceURL(String url)

getApplicationMap

public abstract Map getApplicationMap()

getAuthType

public abstract String getAuthType()

getContext

public abstract Object getContext()

getInitParameter

public abstract String getInitParameter(String name)

getInitParameterMap

public abstract Map getInitParameterMap()

getRemoteUser

public abstract String getRemoteUser()

getRequest

public abstract Object getRequest()

getRequestContextPath

public abstract String getRequestContextPath()

getRequestCookieMap

public abstract Map getRequestCookieMap()

getRequestHeaderMap

public abstract Map getRequestHeaderMap()

getRequestHeaderValuesMap

public abstract Map getRequestHeaderValuesMap()

getRequestLocale

public abstract Locale getRequestLocale()

getRequestLocales

public abstract Iterator getRequestLocales()

getRequestMap

public abstract Map getRequestMap()

getRequestParameterMap

public abstract Map getRequestParameterMap()

getRequestParameterNames

public abstract Iterator getRequestParameterNames()

getRequestParameterValuesMap

public abstract Map getRequestParameterValuesMap()

getRequestPathInfo

public abstract String getRequestPathInfo()

getRequestServletPath

public abstract String getRequestServletPath()

getResource

public abstract URL getResource(String path)
                         throws MalformedURLException
Throws:
MalformedURLException

getResourceAsStream

public abstract InputStream getResourceAsStream(String path)

getResourcePaths

public abstract Set getResourcePaths(String path)

getResponse

public abstract Object getResponse()

getSession

public abstract Object getSession(boolean create)

getSessionMap

public abstract Map getSessionMap()

getUserPrincipal

public abstract Principal getUserPrincipal()

isUserInRole

public abstract boolean isUserInRole(String role)

log

public abstract void log(String message)

log

public abstract void log(String message,
                         Throwable exception)

redirect

public abstract void redirect(String url)
                       throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.