public class WelcomeFileModel extends ElementModel<org.ops4j.pax.web.service.whiteboard.WelcomeFileMapping,WelcomeFileEventData>
contextModels, contextModelsInfo, dtoFailureCode, isValid| Constructor and Description |
|---|
WelcomeFileModel(String[] welcomeFiles,
boolean redirect) |
| Modifier and Type | Method and Description |
|---|---|
WelcomeFileEventData |
asEventData()
When sending events related to
ElementModel we can't use the same instance which is kept in
ServerModel, we have to copy relevant
information to lightweight object. |
String[] |
getWelcomeFiles() |
boolean |
isRedirect() |
Boolean |
performValidation()
Perform element-specific validation and throws different exceptions for all element-specific validation
problems.
|
void |
register(WhiteboardWebContainerView view)
Each
ElementModel can register itself as Whiteboard element. |
String |
toString() |
void |
unregister(WhiteboardWebContainerView view)
Each
ElementModel can unregister itself as Whiteboard element. |
addContextModel, changeContextModels, compareTo, equals, getContextFilter, getContextModels, getContextModelsInfo, getContextSelector, getDtoFailureCode, getElementReference, getElementSupplier, getRegisteringBundle, getServiceId, getServiceRank, getTimestamp, hasContextModels, hashCode, isAsynchronusRegistration, isPrototype, isValid, resetContextModels, setAsynchronusRegistration, setCommonEventProperties, setContextSelectFilter, setContextSelector, setDtoFailureCode, setElementReference, setElementSupplier, setRegisteringBundle, setServiceId, setServiceRank, setTimestampgetId, getIdPrefix, getNumericIdpublic WelcomeFileModel(String[] welcomeFiles, boolean redirect)
public void register(WhiteboardWebContainerView view)
ElementModelElementModel can register itself as Whiteboard element.register in class ElementModel<org.ops4j.pax.web.service.whiteboard.WelcomeFileMapping,WelcomeFileEventData>public void unregister(WhiteboardWebContainerView view)
ElementModelElementModel can unregister itself as Whiteboard element.unregister in class ElementModel<org.ops4j.pax.web.service.whiteboard.WelcomeFileMapping,WelcomeFileEventData>public WelcomeFileEventData asEventData()
ElementModelElementModel we can't use the same instance which is kept in
ServerModel, we have to copy relevant
information to lightweight object.asEventData in class ElementModel<org.ops4j.pax.web.service.whiteboard.WelcomeFileMapping,WelcomeFileEventData>public String[] getWelcomeFiles()
public boolean isRedirect()
public String toString()
toString in class ElementModel<org.ops4j.pax.web.service.whiteboard.WelcomeFileMapping,WelcomeFileEventData>public Boolean performValidation()
ElementModelPerform element-specific validation and throws different exceptions for all element-specific validation problems. This method should not be called for Whiteboard purposes, where "failure DTO" has to be configured.
This method should be called in Http Service scenario where we immediately need strong feedback - with exceptions thrown for all validation problems. In Whiteboard scenario, the exception is caught, logged and it's the tracker that prevents further registration.
This method may alter the state of the model when (which is possible during validation) some extra information is obtained/compiled/processed.
performValidation in class ElementModel<org.ops4j.pax.web.service.whiteboard.WelcomeFileMapping,WelcomeFileEventData>Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.