Package com.microstrategy.web.app.beans
Class ServletWebComponent
- java.lang.Object
-
- com.microstrategy.utils.serialization.AbstractPersistable
-
- com.microstrategy.web.beans.AbstractTransformable
-
- com.microstrategy.web.beans.AbstractWebComponent
-
- com.microstrategy.web.app.beans.AbstractAppComponent
-
- com.microstrategy.web.app.beans.AbstractPersistableAppComponent
-
- com.microstrategy.web.app.beans.ServletWebComponent
-
- All Implemented Interfaces:
EnumWebPersistableState
,Persistable
,AppComponent
,RequestPersistable
,Transformable
,WebComponent
public class ServletWebComponent extends AbstractPersistableAppComponent
This class implements the WebComponent interface for having its methods available to the application Servlet.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
STATE_DELIMITOR, STATE_ITEM_SEPARATOR
-
Fields inherited from class com.microstrategy.web.beans.AbstractWebComponent
_features, _hasJustOpened
-
Fields inherited from class com.microstrategy.web.beans.AbstractTransformable
_beanContext
-
Fields inherited from class com.microstrategy.utils.serialization.AbstractPersistable
scriptEndTagEncoder
-
Fields inherited from interface com.microstrategy.web.app.beans.AppComponent
COMPONENT_POSITION_NOT_INITIALIZED
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Constructor Summary
Constructors Constructor Description ServletWebComponent()
Creates a new ServletWebComponent with default parameters.ServletWebComponent(java.lang.String name)
Creates a new ServletWebComponent with default parameters but a custom name.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Proceses the save/restore state opperation of the AppComponentMarkupOutput
generateOutput()
This Component is not used to generate output.java.lang.String
getCurrentPort()
Returns the port of the current sessionjava.lang.String
getCurrentProject()
Returns the project of the current sessionjava.lang.String
getCurrentServer()
Returns the server of the current sessionPageComponent
getPage()
Gets the PageComponent (already initialized) to be used by this servlet.PageHistoryList
getPageHistoryList()
SimpleList
getPendingEvents()
Returns the list of events that were not processed.boolean
isEventWait()
boolean
isOpen()
Overrides isOpen by always returning true: there is no reason why would the servlet be closed.protected WebEventHandler
newDefaultEventHandler()
void
saveLastSuccesfulPage()
Deprecated.void
saveLastSuccesfulPage(PageComponent page)
Deprecated.void
setIsOpen(boolean value)
This is an illegal method: the servlet should never get closed.void
switchPage(java.lang.String pageName)
Replaces the current page in the Servlet with the indicated page-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
addChildStateInfo, isCookieOpen, isSaveStateEnabled, saveState, saveState, saveState, saveState
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractAppComponent
addChildStateInfo, collectData, collectMinimalData, compareChildsTargetWithCurrent, createTransformInstance, doCollectData, doCollectMinimalData, getAppContext, getContactInfo, getContainerServices, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeaturesManager, getLeft, getObjectSource, getResultFilterMode, getSession, getTargetBean, getTop, getType, getWebObjectsFactory, getWebObjectsFactory, getXMLStatus, hasChanged, hasTargetBeanChanged, haveChildrenChanged, initComponent, internalCollectData, isDialog, isForcedChildrenStateSaving, isIFrameRequest, isModal, isModalOpen, newDefaultBeanContext, newHiddenInputBuilder, newNamespaceEncoder, newStyleRequestContext, newURIBuilder, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setLeft, setOutputFormat, setTop
-
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChild, addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath, setWebEventHandler
-
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, internalCollectData, internalCollectData, invalidateTransformCache, isTransformSuitable, transform, transform, transform, transform
-
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, getStateHandler, isXMLStateZipped, restoreState, restoreXMLState, saveXMLState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState
-
Methods inherited from interface com.microstrategy.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest
-
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform
-
Methods inherited from interface com.microstrategy.web.beans.WebComponent
addChild, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler
-
-
-
-
Constructor Detail
-
ServletWebComponent
public ServletWebComponent()
Creates a new ServletWebComponent with default parameters.
This ServletWebComponent uses "mstrWeb" as its name, ServletEventHandlerImpl (which implements ServletEventHandler) as its event handler and has no parent.
-
ServletWebComponent
public ServletWebComponent(java.lang.String name)
Creates a new ServletWebComponent with default parameters but a custom name.
This ServletWebComponent uses ServletEventHandlerImpl (which implements ServletEventHandler) as its event handler and has no parent.
-
-
Method Detail
-
setIsOpen
public void setIsOpen(boolean value)
This is an illegal method: the servlet should never get closed. If the argument received is false, this will throw an IllegalArgumentException- Specified by:
setIsOpen
in interfaceAppComponent
- Overrides:
setIsOpen
in classAbstractAppComponent
- Parameters:
value
- boolean- Since:
- MicroStrategy Web 8.0.0
-
isOpen
public boolean isOpen()
Overrides isOpen by always returning true: there is no reason why would the servlet be closed.- Specified by:
isOpen
in interfaceAppComponent
- Overrides:
isOpen
in classAbstractAppComponent
- Returns:
- true
- Since:
- MicroStrategy Web 8.0.0
-
getPage
public PageComponent getPage()
Gets the PageComponent (already initialized) to be used by this servlet.- Returns:
- page a
PageComponent
already initialized to be used
-
generateOutput
public MarkupOutput generateOutput()
This Component is not used to generate output.- Specified by:
generateOutput
in interfaceWebComponent
- Overrides:
generateOutput
in classAbstractAppComponent
- Returns:
- null value.
-
doFlatState
protected void doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Description copied from class:AbstractPersistableAppComponent
Proceses the save/restore state opperation of the AppComponent- Overrides:
doFlatState
in classAbstractPersistableAppComponent
- Parameters:
serializer
- an instance of theFlatStateSerializer
object to usehowMuchState
- defines how much information needs to be savedtokenizer
- an instance of theFlatStateTokenizer
object to use- See Also:
AbstractPersistableAppComponent.doFlatState(FlatStateSerializer, int, FlatStateTokenizer)
-
getCurrentServer
public java.lang.String getCurrentServer()
Returns the server of the current session- Returns:
- a
String
value with the current server name
-
getCurrentProject
public java.lang.String getCurrentProject()
Returns the project of the current session- Returns:
- a
String
value with the current project name
-
getCurrentPort
public java.lang.String getCurrentPort()
Returns the port of the current session- Returns:
- a
String
value with the current port number
-
getPageHistoryList
public PageHistoryList getPageHistoryList()
- Returns:
- The Page History List object
- Since:
- MicroStrategy Web 9.0.0
-
getPendingEvents
public SimpleList getPendingEvents()
Returns the list of events that were not processed.
This list is retrieved directly from the EventHandler, since it's its responsibility. For this to happen the event handler needs to extendServletEventHandler
.- Returns:
- a List with the events that were not processed during
handleRequest()
.
-
isEventWait
public boolean isEventWait()
-
saveLastSuccesfulPage
@Deprecated public void saveLastSuccesfulPage(PageComponent page)
Deprecated.Saves the information of the last succesful page so it can be restored by the cancel event.- Parameters:
page
- the page to save.
-
saveLastSuccesfulPage
@Deprecated public void saveLastSuccesfulPage()
Deprecated.Saves the information of the last succesful page so it can be restored by the cancel event.
-
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
newDefaultEventHandler
in classAbstractWebComponent
- Since:
- MicroStrategy Web 9.0.0
-
switchPage
public void switchPage(java.lang.String pageName) throws WebBeanException, WebException
Replaces the current page in the Servlet with the indicated page- Parameters:
pageName
- . Name of the new page to instantiate- Throws:
WebBeanException
WebException
-
-