Class StaticResourceMapping
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.server.rest.jetty.StaticResourceMapping
- All Implemented Interfaces:
org.eclipse.net4j.util.event.INotifier, org.eclipse.net4j.util.event.INotifier.INotifier2, org.eclipse.net4j.util.lifecycle.IDeactivateable, org.eclipse.net4j.util.lifecycle.ILifecycle, org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
public final class StaticResourceMapping
extends org.eclipse.net4j.util.lifecycle.Lifecycle
Describes one explicitly configured public static resource context for the standalone Jetty REST listener.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.event.Notifier.CancelationNested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFactory product group used by nestedstatictransport elements.Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty mapping for AnnotationFactory configuration.StaticResourceMapping(String path, String resourceBase) Creates a mapping for the given URL path and filesystem directory. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetPath()Returns the URL context path that identifies this static resource context.Returns the filesystem directory exposed by this mapping.voidSets the URL context path before this mapping is configured.voidsetResourceBase(String resourceBase) Sets the filesystem directory exposed by this mapping.Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, doCancelActivation, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
PRODUCT_GROUP
Factory product group used by nestedstatictransport elements.- See Also:
-
-
Constructor Details
-
StaticResourceMapping
public StaticResourceMapping()Creates an empty mapping for AnnotationFactory configuration. -
StaticResourceMapping
-
-
Method Details
-
getPath
Returns the URL context path that identifies this static resource context.- Returns:
- the configured absolute context path
-
setPath
Sets the URL context path before this mapping is configured.- Parameters:
path- the absolute URL context path
-
getResourceBase
Returns the filesystem directory exposed by this mapping.- Returns:
- the configured filesystem path
-
setResourceBase
Sets the filesystem directory exposed by this mapping.- Parameters:
resourceBase- the directory path resolved by the server process
-
doBeforeActivate
-