org.apache.myfaces.trinidad.context
Class MockRequestContext

java.lang.Object
  extended by org.apache.myfaces.trinidad.context.RequestContext
      extended by org.apache.myfaces.trinidad.context.MockRequestContext

public class MockRequestContext
extends RequestContext


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.myfaces.trinidad.context.RequestContext
RequestContext.Accessibility, RequestContext.ClientValidation, RequestContext.OutputMode
 
Field Summary
 
Fields inherited from class org.apache.myfaces.trinidad.context.RequestContext
VARIABLE_NAME
 
Constructor Summary
MockRequestContext()
           
 
Method Summary
 void addPartialTarget(javax.faces.component.UIComponent newTarget)
           
 void addPartialTargets(javax.faces.component.UIComponent from, String... targets)
           
 void addPartialTriggerListeners(javax.faces.component.UIComponent listener, String[] trigger)
           
 RequestContext.Accessibility getAccessibilityMode()
           
 AccessibilityProfile getAccessibilityProfile()
           
 Agent getAgent()
           
 ChangeManager getChangeManager()
           
 RequestContext.ClientValidation getClientValidation()
           
 Map<String,List<Color>> getColorPalette()
           
 String getCurrencyCode()
           
 char getDecimalSeparator()
           
 DialogService getDialogService()
           
 Map<Object,Map<Object,String>> getFormatter()
           
 Locale getFormattingLocale()
           
 Map<String,Object> getHelpSystem()
           
 Map<String,Object> getHelpTopic()
           
 char getNumberGroupingSeparator()
           
 String getOracleHelpServletUrl()
           
 String getOutputMode()
           
 Map<String,Object> getPageFlowScope()
           
 PageFlowScopeProvider getPageFlowScopeProvider()
           
 PageResolver getPageResolver()
           
 Set<javax.faces.component.UIComponent> getPartialTargets(javax.faces.component.UIComponent from)
           
 RegionManager getRegionManager()
           
 String getSkinFamily()
           
 TimeZone getTimeZone()
           
 int getTwoDigitYearStart()
           
 Long getUploadedFileMaxDiskSpace()
           
 Long getUploadedFileMaxMemory()
           
 UploadedFileProcessor getUploadedFileProcessor()
           
 String getUploadedFileTempDir()
           
 Map<String,Object> getViewMap()
           
 Map<String,Object> getViewMap(boolean create)
           
 boolean isAnimationEnabled()
           
 boolean isClientValidationDisabled()
           
 boolean isDebugOutput()
           
 boolean isInternalViewRequest(javax.faces.context.FacesContext context)
           
 boolean isPartialRequest(javax.faces.context.FacesContext context)
           
 boolean isPostback()
           
 boolean isRightToLeft()
           
 void launchDialog(javax.faces.component.UIViewRoot dialogRoot, Map<String,Object> dialogParameters, javax.faces.component.UIComponent source, boolean useWindow, Map<String,Object> windowProperties)
           
 void partialUpdateNotify(javax.faces.component.UIComponent updated)
           
 javax.faces.component.UIComponent restoreComponent(Object state)
           
 void returnFromDialog(Object returnValue, Map<Object,Object> returnParam)
           
 Object saveComponent(javax.faces.component.UIComponent component)
           
 void setAccessibilityMode(RequestContext.Accessibility accMode)
           
 void setAccessibilityProfile(AccessibilityProfile accProfile)
           
 void setAgent(Agent agent)
           
 void setAnimationEnabled(boolean animationEnabled)
           
 void setCurrencyCode(String code)
           
 void setDecimalSeparator(char sep)
           
 void setFormattingLocale(Locale formattingLocale)
           
 void setNumberGroupingSeparator(char sep)
           
 void setRightToLeft(boolean rtl)
           
 void setSkinFamily(String skin)
           
 void setTimeZone(TimeZone timeZone)
           
 void setTwoDigitYearStart(int start)
           
 void setUploadedFileMaxDiskSpace(Long maxDiskSpace)
           
 void setUploadedFileMaxMemory(Long maxMemory)
           
 void setUploadedFileTempDir(String tempDir)
           
 
Methods inherited from class org.apache.myfaces.trinidad.context.RequestContext
attach, createVisitContext, getApplicationScopedConcurrentMap, getComponentContextManager, getCurrentInstance, getOutputModeEnum, getProcessScope, getSkinVersion, getWindowManager, getWindowMap, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockRequestContext

public MockRequestContext()
Method Detail

setAgent

public void setAgent(Agent agent)

getAgent

public Agent getAgent()
Specified by:
getAgent in class RequestContext

getPageResolver

public PageResolver getPageResolver()
Specified by:
getPageResolver in class RequestContext

getPageFlowScopeProvider

public PageFlowScopeProvider getPageFlowScopeProvider()
Specified by:
getPageFlowScopeProvider in class RequestContext

getDialogService

public DialogService getDialogService()
Specified by:
getDialogService in class RequestContext

getPageFlowScope

public Map<String,Object> getPageFlowScope()
Specified by:
getPageFlowScope in class RequestContext

returnFromDialog

public void returnFromDialog(Object returnValue,
                             Map<Object,Object> returnParam)
Specified by:
returnFromDialog in class RequestContext

launchDialog

public void launchDialog(javax.faces.component.UIViewRoot dialogRoot,
                         Map<String,Object> dialogParameters,
                         javax.faces.component.UIComponent source,
                         boolean useWindow,
                         Map<String,Object> windowProperties)
Specified by:
launchDialog in class RequestContext

isPostback

public boolean isPostback()
Specified by:
isPostback in class RequestContext

isPartialRequest

public boolean isPartialRequest(javax.faces.context.FacesContext context)
Specified by:
isPartialRequest in class RequestContext

isDebugOutput

public boolean isDebugOutput()
Specified by:
isDebugOutput in class RequestContext

getClientValidation

public RequestContext.ClientValidation getClientValidation()
Specified by:
getClientValidation in class RequestContext

isClientValidationDisabled

public boolean isClientValidationDisabled()
Specified by:
isClientValidationDisabled in class RequestContext

getOutputMode

public String getOutputMode()
Specified by:
getOutputMode in class RequestContext

setSkinFamily

public void setSkinFamily(String skin)

getSkinFamily

public String getSkinFamily()
Specified by:
getSkinFamily in class RequestContext

getAccessibilityMode

public RequestContext.Accessibility getAccessibilityMode()
Specified by:
getAccessibilityMode in class RequestContext

setAccessibilityMode

public void setAccessibilityMode(RequestContext.Accessibility accMode)

getAccessibilityProfile

public AccessibilityProfile getAccessibilityProfile()
Specified by:
getAccessibilityProfile in class RequestContext

setAccessibilityProfile

public void setAccessibilityProfile(AccessibilityProfile accProfile)

isRightToLeft

public boolean isRightToLeft()
Specified by:
isRightToLeft in class RequestContext

setRightToLeft

public void setRightToLeft(boolean rtl)

setAnimationEnabled

public void setAnimationEnabled(boolean animationEnabled)

isAnimationEnabled

public boolean isAnimationEnabled()
Specified by:
isAnimationEnabled in class RequestContext

getFormattingLocale

public Locale getFormattingLocale()
Specified by:
getFormattingLocale in class RequestContext

setFormattingLocale

public void setFormattingLocale(Locale formattingLocale)

getNumberGroupingSeparator

public char getNumberGroupingSeparator()
Specified by:
getNumberGroupingSeparator in class RequestContext

setNumberGroupingSeparator

public void setNumberGroupingSeparator(char sep)

getDecimalSeparator

public char getDecimalSeparator()
Specified by:
getDecimalSeparator in class RequestContext

setDecimalSeparator

public void setDecimalSeparator(char sep)

getCurrencyCode

public String getCurrencyCode()
Specified by:
getCurrencyCode in class RequestContext

setCurrencyCode

public void setCurrencyCode(String code)

getTwoDigitYearStart

public int getTwoDigitYearStart()
Specified by:
getTwoDigitYearStart in class RequestContext

setTwoDigitYearStart

public void setTwoDigitYearStart(int start)

getOracleHelpServletUrl

public String getOracleHelpServletUrl()
Specified by:
getOracleHelpServletUrl in class RequestContext

getHelpTopic

public Map<String,Object> getHelpTopic()
Specified by:
getHelpTopic in class RequestContext

getHelpSystem

public Map<String,Object> getHelpSystem()
Specified by:
getHelpSystem in class RequestContext

getTimeZone

public TimeZone getTimeZone()
Specified by:
getTimeZone in class RequestContext

setTimeZone

public void setTimeZone(TimeZone timeZone)

setUploadedFileMaxMemory

public void setUploadedFileMaxMemory(Long maxMemory)

getUploadedFileMaxMemory

public Long getUploadedFileMaxMemory()
Specified by:
getUploadedFileMaxMemory in class RequestContext

setUploadedFileMaxDiskSpace

public void setUploadedFileMaxDiskSpace(Long maxDiskSpace)

getUploadedFileMaxDiskSpace

public Long getUploadedFileMaxDiskSpace()
Specified by:
getUploadedFileMaxDiskSpace in class RequestContext

setUploadedFileTempDir

public void setUploadedFileTempDir(String tempDir)

getUploadedFileTempDir

public String getUploadedFileTempDir()
Specified by:
getUploadedFileTempDir in class RequestContext

addPartialTarget

public void addPartialTarget(javax.faces.component.UIComponent newTarget)
Specified by:
addPartialTarget in class RequestContext

addPartialTargets

public void addPartialTargets(javax.faces.component.UIComponent from,
                              String... targets)
Specified by:
addPartialTargets in class RequestContext
See Also:
RequestContext.addPartialTargets(javax.faces.component.UIComponent, java.lang.String[])

getPartialTargets

public Set<javax.faces.component.UIComponent> getPartialTargets(javax.faces.component.UIComponent from)
Specified by:
getPartialTargets in class RequestContext

addPartialTriggerListeners

public void addPartialTriggerListeners(javax.faces.component.UIComponent listener,
                                       String[] trigger)
Specified by:
addPartialTriggerListeners in class RequestContext

partialUpdateNotify

public void partialUpdateNotify(javax.faces.component.UIComponent updated)
Specified by:
partialUpdateNotify in class RequestContext

getUploadedFileProcessor

public UploadedFileProcessor getUploadedFileProcessor()
Specified by:
getUploadedFileProcessor in class RequestContext

getColorPalette

public Map<String,List<Color>> getColorPalette()
Specified by:
getColorPalette in class RequestContext

getFormatter

public Map<Object,Map<Object,String>> getFormatter()
Specified by:
getFormatter in class RequestContext

getChangeManager

public ChangeManager getChangeManager()
Specified by:
getChangeManager in class RequestContext

getRegionManager

public RegionManager getRegionManager()
Specified by:
getRegionManager in class RequestContext

saveComponent

public Object saveComponent(javax.faces.component.UIComponent component)
Specified by:
saveComponent in class RequestContext

restoreComponent

public javax.faces.component.UIComponent restoreComponent(Object state)
Specified by:
restoreComponent in class RequestContext

isInternalViewRequest

public boolean isInternalViewRequest(javax.faces.context.FacesContext context)
Specified by:
isInternalViewRequest in class RequestContext

getViewMap

public Map<String,Object> getViewMap()
Specified by:
getViewMap in class RequestContext

getViewMap

public Map<String,Object> getViewMap(boolean create)
Specified by:
getViewMap in class RequestContext


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