Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

absoluteTimeout() - Method in class org.jgrapes.http.SessionManager
 
Accepted - Class in org.jgrapes.net.events
This event signals that a new connection has been made by a client.
Accepted(SocketAddress, SocketAddress, boolean, List<SNIServerName>) - Constructor for class org.jgrapes.net.events.Accepted
Creates a new instance.
acceptNoSni() - Method in class org.jgrapes.http.HttpServer
Returns if secure (TLS) requests without SNI are allowed.
acquire() - Method in class org.jgrapes.io.util.ManagedBufferPool
Acquires a managed buffer from the pool.
acquire() - Method in class org.jgrapes.io.util.PermitsPool
Acquire a permit, waiting until one becomes available.
Action(String) - Constructor for class org.jgrapes.util.events.KeyValueStoreUpdate.Action
Instantiates a new action.
ActionEvent<T> - Class in org.jgrapes.core.internal
A base class for events that perform an action instead of being handled.
ActionEvent(String) - Constructor for class org.jgrapes.core.internal.ActionEvent
Instantiates a new action event.
ActionExecutor - Class in org.jgrapes.core.internal
Helper class for simulating event handlers.
ActionExecutor() - Constructor for class org.jgrapes.core.internal.ActionExecutor
 
actions() - Method in class org.jgrapes.util.events.KeyValueStoreUpdate
Returns the actions.
activeEventPipeline() - Method in class org.jgrapes.core.internal.ComponentVertex
 
activeEventPipeline() - Method in interface org.jgrapes.core.Manager
Returns the pipeline used when firing an event.
add(ComponentType, String, Object, Object, int) - Static method in class org.jgrapes.core.annotation.Handler.Evaluator
Adds the given method of the given component as a dynamic handler for a specific event and channel.
add(ComponentType, String, Object) - Static method in class org.jgrapes.core.annotation.Handler.Evaluator
Add a handler like Handler.Evaluator.add(ComponentType, String, Object, Object, int) but take the values for event and priority from the annotation.
add(Class<? extends Channel>, Channel) - Method in class org.jgrapes.core.annotation.HandlerDefinition.ChannelReplacements
Adds a replacements to the replacements.
add(K, V) - Method in class org.jgrapes.core.Components.PoolingIndex
Adds the value to the pool of values associated with the key.
add(T, Channel...) - Method in class org.jgrapes.core.internal.BufferingEventPipeline
 
add(T, Channel...) - Method in class org.jgrapes.core.internal.EventProcessor
 
add(Object) - Method in class org.jgrapes.core.internal.GeneratorRegistry
Adds a generator.
add(ComponentType, String, String) - Static method in class org.jgrapes.http.annotation.RequestHandler.Evaluator
Adds the given method of the given component as a dynamic handler for a specific pattern.
add(ComponentType, String, String, int) - Static method in class org.jgrapes.http.annotation.RequestHandler.Evaluator
Adds the given method of the given component as a dynamic handler for a specific pattern with the specified priority.
add(String, String, String) - Method in class org.jgrapes.util.events.ConfigurationUpdate
Add new (updated) configuration value to the event.
addCompletionEvent(Event<?>) - Method in class org.jgrapes.core.Event
Adds the given event to the events to be thrown when this event has completed (see Event.isDone()).
addHandler(Method, HandlerScope, int) - Method in class org.jgrapes.core.internal.ComponentVertex
 
addHandler(Method, HandlerScope, int) - Method in interface org.jgrapes.core.Manager
Adds a handler for the given method with the given scope and priority.
addListener(AvailabilityListener) - Method in class org.jgrapes.io.util.PermitsPool
Adds an AvailabilityListener.
address() - Method in class org.jgrapes.io.events.OpenTcpConnection
Gets the address.
applicationBufferSize() - Method in class org.jgrapes.http.HttpConnector
Returns the size of the application side (receive) buffers.
applicationBufferSize() - Method in class org.jgrapes.http.HttpServer
Returns the size of the application side (receive) buffers.
applicationPath() - Method in class org.jgrapes.util.events.InitialPreferences
The absolute path of the application’s preferences.
array() - Method in class org.jgrapes.io.util.ManagedBuffer
 
arrayOffset() - Method in class org.jgrapes.io.util.ManagedBuffer
 
associate(Associator, Serializable, V) - Static method in class org.jgrapes.core.TypedIdKey
Associates the given value’s type and the id with the given value using the given associator.
associated(Object, Class<V>) - Method in interface org.jgrapes.core.Associator
Retrieves the associated object following the association with the given “name”.
associated(Object, Supplier<V>) - Method in interface org.jgrapes.core.Associator
Retrieves the associated object following the association with the given “name”.
associated(String) - Method in interface org.jgrapes.core.Associator
Retrieves the associated object following the association with the given name.
associated(Class<V>) - Method in interface org.jgrapes.core.Associator
Retrieves the associated object following the association with the given class.
associated(Object, Class<V>) - Method in class org.jgrapes.core.Event
 
associated(Object, Class<V>) - Method in class org.jgrapes.core.Subchannel.DefaultSubchannel
Retrieves the associated object following the association with the given “name”.
associated(Associator, Class<V>, Serializable) - Static method in class org.jgrapes.core.TypedIdKey
Retrieves a value with the given type and id from the given associator.
associated(Object, Class<V>) - Method in class org.jgrapes.io.util.LinkedIOSubchannel
Delegates the invocation to the upstream channel if no associated data is found for this channel.
associatedLocale(Associator) - Static method in class org.jgrapes.http.LanguageSelector
Convenience method to retrieve a locale from an associator.
Associator - Interface in org.jgrapes.core
Implemented by classes that allow arbitrary objects to be associated with instances.
attach(T) - Method in class org.jgrapes.core.internal.ComponentVertex
 
attach(T) - Method in interface org.jgrapes.core.Manager
Attaches the given component node (or complete tree) as a child to the component managed by this manager.
Attached - Class in org.jgrapes.core.events
Signals the addition of a component (or subtree) to the component tree.
Attached(ComponentType, ComponentType) - Constructor for class org.jgrapes.core.events.Attached
Creates a new event.
augmentPermits(int) - Method in class org.jgrapes.io.util.PermitsPool
Adds the given number of permits to the pool.
availabilityChanged(PermitsPool, boolean) - Method in interface org.jgrapes.io.util.AvailabilityListener
Called when the availability has changed.
AvailabilityListener - Interface in org.jgrapes.io.util
Used to notify interested objects about the changed availability of permits.
availablePermits() - Method in class org.jgrapes.io.util.PermitsPool
Returns the number of currently available permits.
awaitExhaustion() - Static method in class org.jgrapes.core.Components
Wait until all generators and event queues are exhausted.
awaitExhaustion(long) - Static method in class org.jgrapes.core.Components
Wait until all generators and event queues are exhausted or the maximum wait time has expired.
awaitExhaustion() - Method in class org.jgrapes.core.internal.GeneratorRegistry
Await exhaustion.
awaitExhaustion(long) - Method in class org.jgrapes.core.internal.GeneratorRegistry
Await exhaustion with a timeout.

B

backing - Variable in class org.jgrapes.io.util.ManagedBuffer
 
backingBuffer() - Method in class org.jgrapes.io.util.ManagedBuffer
Return the backing buffer.
backlog() - Method in class org.jgrapes.net.TcpServer
Return the configured backlog size.
BROADCAST - Static variable in interface org.jgrapes.core.Channel
A special channel instance that can be used to send events to all components.
buffer() - Method in class org.jgrapes.io.events.IOEvent
Get the managed buffer with the data from this event.
BufferCollector<B extends ManagedBuffer<?>> - Interface in org.jgrapes.io.util
Defines the method of a buffer collector.
BufferingEventPipeline - Class in org.jgrapes.core.internal
The buffering event pipeline is used before a tree has been started.
bufferSize() - Method in class org.jgrapes.io.util.ManagedBufferPool
Returns the size of the buffers managed by this pool.
bufferSize() - Method in class org.jgrapes.net.TcpConnectionManager
Return the configured buffer size.
bufferSize() - Method in class org.jgrapes.net.TcpConnector
Return the configured buffer size.
ByteBufferOutputStream - Class in org.jgrapes.io.util
An OutputStream that is backed by ByteBuffers obtained from a queue.
ByteBufferOutputStream(IOSubchannel, EventPipeline) - Constructor for class org.jgrapes.io.util.ByteBufferOutputStream
Creates a new instance that uses Output events to dispatch buffers on the given channel, using the given event pipeline.
ByteBufferOutputStream(IOSubchannel) - Constructor for class org.jgrapes.io.util.ByteBufferOutputStream
Creates a new instance that uses Output events to dispatch buffers on the given channel, using the channel’s response pipeline.
byteBufferPool() - Method in interface org.jgrapes.io.IOSubchannel
Get the subchannel’s byte buffer pool.
byteBufferPool() - Method in class org.jgrapes.io.IOSubchannel.DefaultIOSubchannel
Returns the buffer pool set.

C

cancel() - Method in class org.jgrapes.core.Components.Timer
Cancels this timer.
cancel(boolean) - Method in class org.jgrapes.core.Event
Prevents the invocation of further handlers (like Event.stop() and (in addition) the invocation of any added completed events.
capacity() - Method in class org.jgrapes.io.util.ManagedBuffer
 
Channel - Interface in org.jgrapes.core
Instances of this interface can be used as a communication bus for sending events between components.
channel() - Method in class org.jgrapes.core.Component
Returns the channel associated with the component.
channel() - Method in class org.jgrapes.core.internal.ComponentProxy
 
channel() - Method in interface org.jgrapes.core.Manager
Returns the channel of the component managed by this manager.
Channel.Default - Interface in org.jgrapes.core
This interface’s class can be used to specify the component’s channel (see Component.channel()) as criterion in handler annotations.
ChannelInfo(TcpConnectionManager.TcpChannelImpl) - Constructor for class org.jgrapes.net.TcpServer.TcpServerMXBean.ChannelInfo
Instantiates a new channel info.
ChannelReplacements() - Constructor for class org.jgrapes.core.annotation.HandlerDefinition.ChannelReplacements
 
channels() - Method in class org.jgrapes.core.Event
Returns the channels associated with the event.
channels(Class<C>) - Method in class org.jgrapes.core.Event
Returns the subset of channels that are assignable to the given type.
channels() - Method in class org.jgrapes.core.internal.EventBase
channels - Variable in class org.jgrapes.core.internal.EventChannelsTuple
 
channels - Variable in class org.jgrapes.net.TcpConnectionManager
 
charBufferPool() - Method in interface org.jgrapes.io.IOSubchannel
Get the subchannel’s char buffer pool.
charBufferPool() - Method in class org.jgrapes.io.IOSubchannel.DefaultIOSubchannel
Returns the buffer pool set.
CharBufferWriter - Class in org.jgrapes.io.util
An Writer that is backed by CharBuffers obtained from a queue.
CharBufferWriter(IOSubchannel, EventPipeline) - Constructor for class org.jgrapes.io.util.CharBufferWriter
Creates a new instance that uses Output events to dispatch buffers on the given channel, using the given event pipeline.
CharBufferWriter(IOSubchannel) - Constructor for class org.jgrapes.io.util.CharBufferWriter
Creates a new instance that uses Output events to dispatch buffers on the given channel, using the channel’s response pipeline.
checkAssertions() - Static method in class org.jgrapes.core.Components
Utility method that checks if an assertion error has occurred while executing handlers.
checkAssertions() - Static method in class org.jgrapes.core.internal.CoreUtils
Check if an assertion has been set and if, throw it.
checkMethodSignature(Method) - Static method in interface org.jgrapes.core.annotation.HandlerDefinition.Evaluator
Utility method for checking if the method can be used as handler.
children() - Method in class org.jgrapes.core.internal.ComponentVertex
 
children() - Method in interface org.jgrapes.core.Manager
Returns the child components of the component managed by this manager as unmodifiable list.
ClassChannel - Class in org.jgrapes.core
This class is the root base class for channels that use their class (type) as value for matching (see Eligible).
ClassChannel() - Constructor for class org.jgrapes.core.ClassChannel
 
className(Class<?>) - Static method in class org.jgrapes.core.Components
Returns the full name or simple name of the class depending on the log level.
classNames - Static variable in class org.jgrapes.core.internal.CoreUtils
 
clear() - Method in class org.jgrapes.core.Components.PoolingIndex
Remove all entries.
clear() - Method in class org.jgrapes.io.util.ManagedBuffer
 
clearAll(String...) - Method in class org.jgrapes.util.events.KeyValueStoreUpdate
Adds a new deletion action that clears all keys with the given path prefix.
Close - Class in org.jgrapes.io.events
This event causes the initiator of an I/O channel to shutdown the channel.
Close() - Constructor for class org.jgrapes.io.events.Close
 
close() - Method in class org.jgrapes.io.util.ByteBufferOutputStream
Flushes any remaining data with the end of record flag set (unless ByteBufferOutputStream.suppressEndOfRecord() has been called) and fires a Close event (unless ByteBufferOutputStream.suppressClose() has been called).
close() - Method in class org.jgrapes.io.util.CharBufferWriter
Flushes any remaining data with the end of record flag set (unless CharBufferWriter.suppressEndOfRecord() has been called) and fires a Close event (unless CharBufferWriter.suppressClose() has been called).
close() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Closes this channel.
Closed - Class in org.jgrapes.io.events
This event signals that an I/O subchannel will no longer be used.
Closed(Throwable) - Constructor for class org.jgrapes.io.events.Closed
Creates a new event that signals a close in response to an error (usually an IOException.
Closed() - Constructor for class org.jgrapes.io.events.Closed
Creates a new event that signals a regular close.
completed - Variable in class org.jgrapes.core.internal.EventBase
Set when the event has been completed.
Completed(Request.In, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Completed
Instantiates a new event.
Completed(NioRegistration, Channel...) - Constructor for class org.jgrapes.io.events.NioRegistration.Completed
Instantiates a new event.
CompletionEvent<T extends Event<?>> - Class in org.jgrapes.core
A base class for completion events that use the completed event as their result type.
CompletionEvent(T, Channel...) - Constructor for class org.jgrapes.core.CompletionEvent
Instantiates a new completion event.
completionEvents() - Method in class org.jgrapes.core.Event
Returns the events to be thrown when this event has completed (see Event.isDone()).
completionEvents - Variable in class org.jgrapes.core.internal.EventBase
The events to be fired upon completion.
CompletionLock - Class in org.jgrapes.core
Represents a lock that prevents sending completion events.
CompletionLock(Event<?>, long) - Constructor for class org.jgrapes.core.CompletionLock
Creates a completion lock for the given event with the given timeout.
CompletionLock(Event<?>) - Constructor for class org.jgrapes.core.CompletionLock
Creates a completion lock without timeout.
CompletionLockBase - Class in org.jgrapes.core.internal
The base class for completeion locks.
CompletionLockBase(EventBase<?>, long) - Constructor for class org.jgrapes.core.internal.CompletionLockBase
 
Component - Class in org.jgrapes.core
This class can be used as base class for implementing a component.
Component() - Constructor for class org.jgrapes.core.Component
Creates a new component base with its channel set to itself.
Component(Channel) - Constructor for class org.jgrapes.core.Component
Creates a new component base with its channel set to the given channel.
Component(Channel, HandlerDefinition.ChannelReplacements) - Constructor for class org.jgrapes.core.Component
Creates a new component base like Component.Component(Channel) but with channel mappings for Handler annotations.
component() - Method in class org.jgrapes.core.Component
 
component() - Method in class org.jgrapes.core.internal.ComponentProxy
 
component() - Method in class org.jgrapes.core.internal.ComponentVertex
Returns the component represented by this node in the tree.
ComponentCollector<F extends ComponentFactory> - Class in org.jgrapes.core
A component that collects all component factory services of a given type and creates an instance of each.
ComponentCollector(Class<F>, Channel, Function<String, List<Map<Object, Object>>>) - Constructor for class org.jgrapes.core.ComponentCollector
Creates a new collector that collects the factories of the given type and uses each to create an instance with this component’s channel.
ComponentCollector(Class<F>, Channel) - Constructor for class org.jgrapes.core.ComponentCollector
Utility constructor that uses each factory to create a single instance, using an empty map as properties.
ComponentFactory - Interface in org.jgrapes.core
A general purpose factory interface for components.
ComponentManager - Annotation Type in org.jgrapes.core.annotation
This annotation marks a component type’s attribute of type Manager as a slot for the component type’s manager.
componentPath() - Method in class org.jgrapes.core.internal.ComponentVertex
 
componentPath() - Method in interface org.jgrapes.core.Manager
Returns the path of the component.
ComponentProxy - Class in org.jgrapes.core.internal
The ComponentProxy is a special ComponentVertex that references the object implementing the Component interface (instead of being its base class).
Components - Class in org.jgrapes.core
This class provides some utility functions.
Components.IdInfoProvider - Interface in org.jgrapes.core
Implemented by classes that want a special class (scope) to be used for looking up their id or want to map to another object for getting the id (see Components.objectId(Object)).
Components.PoolingIndex<K,V> - Class in org.jgrapes.core
An index of pooled items.
Components.TimeoutHandler - Interface in org.jgrapes.core
Instances are added to the scheduler in order to be invoked at a given time.
Components.Timer - Class in org.jgrapes.core
Represents a timer as created by Components.schedule(TimeoutHandler, Instant).
componentType() - Method in interface org.jgrapes.core.ComponentFactory
Returns the type of the components created by this factory.
ComponentType - Interface in org.jgrapes.core
This interface marks a class as a component.
ComponentVertex - Class in org.jgrapes.core.internal
ComponentVertex is the base class for all nodes in the component tree.
ComponentVertex() - Constructor for class org.jgrapes.core.internal.ComponentVertex
Initialize the ComponentVertex.
componentVertex(ComponentType, Channel) - Static method in class org.jgrapes.core.internal.ComponentVertex
Return the component node for a given component.
ConfigurationUpdate - Class in org.jgrapes.util.events
An event to indicate that configuration information has been updated.
ConfigurationUpdate() - Constructor for class org.jgrapes.util.events.ConfigurationUpdate
 
Connect(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Connect
Create a new event.
Connect(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Connect
Instantiates a new request.
Connected - Class in org.jgrapes.net.events
This event signals that a new connection has been made by a client.
Connected(SocketAddress, SocketAddress) - Constructor for class org.jgrapes.net.events.Connected
Creates a new instance.
connectedCallback() - Method in class org.jgrapes.http.events.Request.Out
Returns the connected callback.
ConnectError - Class in org.jgrapes.io.events
Indicates a problem while opening a network connection.
ConnectError(ConnectError) - Constructor for class org.jgrapes.io.events.ConnectError
Creates a new event as a copy of an existing event.
ConnectError(Event<?>, String) - Constructor for class org.jgrapes.io.events.ConnectError
 
ConnectError(Event<?>, String, Throwable) - Constructor for class org.jgrapes.io.events.ConnectError
 
ConnectError(Event<?>, Throwable) - Constructor for class org.jgrapes.io.events.ConnectError
 
containsKey(Object) - Method in class org.jgrapes.core.Components.PoolingIndex
Checks if the key is in the index.
contentType(URI) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Used to get the content type when generating a response with FreeMarkerRequestHandler.sendProcessedTemplate(Request.In, IOSubchannel, Template).
cookieName() - Method in class org.jgrapes.http.LanguageSelector
Returns the cookie name.
CoreUtils - Class in org.jgrapes.core.internal
Common utility methods.
create() - Static method in class org.jgrapes.core.annotation.HandlerDefinition.ChannelReplacements
Create a new replacements specification object.
create() - Method in interface org.jgrapes.core.ComponentFactory
Creates a new component with its channel set to itself.
create(Channel) - Method in interface org.jgrapes.core.ComponentFactory
Creates a new component with its channel set to the given channel.
create(Channel, Map<Object, Object>) - Method in interface org.jgrapes.core.ComponentFactory
Creates a new component with its channel set to the given channel using the given additional properties.
create(Component) - Static method in interface org.jgrapes.core.Subchannel
Creates a new subchannel of the given component’s channel.
create(Component, EventPipeline) - Static method in interface org.jgrapes.io.IOSubchannel
Creates a new subchannel of the given component’s channel with the given event pipeline and a buffer pool with two buffers sized 4096.
createdAt() - Method in class org.jgrapes.http.InMemorySession
Returns the creation time stamp.
createdAt() - Method in interface org.jgrapes.http.Session
Returns the creation time stamp.
createMatchValue(Class<?>, ResourcePattern) - Static method in class org.jgrapes.http.events.Request.In
Creates the match value.
createSession(String) - Method in class org.jgrapes.http.InMemorySessionManager
 
createSession(String) - Method in class org.jgrapes.http.SessionManager
Creates a new session with the given id.
createSessionId(HttpResponse) - Method in class org.jgrapes.http.SessionManager
Creates a session id and adds the corresponding cookie to the response.
criterionToString(Object) - Static method in interface org.jgrapes.core.Channel
Returns a textual representation of a channel’s criterion.
currentResults() - Method in class org.jgrapes.core.Event
Allows access to the intermediate result before the completion of the event.
currentResults() - Method in class org.jgrapes.core.internal.EventBase

D

data() - Method in class org.jgrapes.core.NamedEvent
Returns a map with data that belongs to the event.
data() - Method in class org.jgrapes.io.events.IOEvent
Return the data associated with this event as Buffer.
data() - Method in class org.jgrapes.util.events.KeyValueStoreData
A shortcut to get the result of the completed query event.
DEFAULT_MAX_AGE_CALCULATOR - Static variable in class org.jgrapes.http.ResponseCreationSupport
A default implementation for the max-age calculator.
defaultCriterion() - Method in class org.jgrapes.core.ClassChannel
Returns the class of this channel as value.
defaultCriterion() - Method in class org.jgrapes.core.Component
Return the object itself as value.
defaultCriterion() - Method in interface org.jgrapes.core.Eligible
Returns a sample criterion that this Eligible meets.
defaultCriterion() - Method in class org.jgrapes.core.Event
Returns the class of this event as representation of its kind.
defaultCriterion() - Method in class org.jgrapes.core.internal.ActionEvent
 
defaultCriterion() - Method in class org.jgrapes.core.internal.ComponentProxy
Return the object itself as value.
defaultCriterion() - Method in class org.jgrapes.core.NamedChannel
Returns the name of the channel as its value.
defaultCriterion() - Method in class org.jgrapes.core.NamedEvent
Returns the kind of the event as the String passed to the constructor.
defaultCriterion() - Method in interface org.jgrapes.core.Subchannel
Returns the main channel’s match value.
defaultCriterion() - Method in class org.jgrapes.http.events.Request.In
The match value consists of the event class and a URI.
defaultDrainDelay() - Static method in class org.jgrapes.io.util.ManagedBufferPool
Returns the default drain delay.
defaultExecutorService() - Static method in class org.jgrapes.core.Components
Return the default executor service for the framework.
DefaultIOSubchannel(Channel, EventPipeline) - Constructor for class org.jgrapes.io.IOSubchannel.DefaultIOSubchannel
Creates a new instance with the given main channel and response pipeline.
DefaultMaxAgeCalculator() - Constructor for class org.jgrapes.http.ResponseCreationSupport.DefaultMaxAgeCalculator
 
DefaultSubchannel(Channel) - Constructor for class org.jgrapes.core.Subchannel.DefaultSubchannel
Creates a new instance with the given main channel and response pipeline.
definitionEvaluator(HandlerDefinition) - Static method in class org.jgrapes.core.internal.CoreUtils
Create a new definition evaluator.
Delete(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Delete
Create a new event.
Delete(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Delete
Instantiates a new request.
delete(String) - Method in class org.jgrapes.util.events.KeyValueStoreUpdate
Adds a new deletion action to the event.
Deletion(String) - Constructor for class org.jgrapes.util.events.KeyValueStoreUpdate.Deletion
Instantiates a new deletion.
derivePattern(String) - Static method in class org.jgrapes.http.SessionManager
Derives the resource pattern from the path.
detach() - Method in class org.jgrapes.core.internal.ComponentVertex
 
detach() - Method in interface org.jgrapes.core.Manager
Detaches the component managed by this manager (with its children, if any) from the component tree that it currently belongs to.
Detached - Class in org.jgrapes.core.events
Signals the removal of a component from the component tree.
Detached(ComponentType, ComponentType) - Constructor for class org.jgrapes.core.events.Detached
Creates a new event.
discard(DiscardSession) - Method in class org.jgrapes.http.SessionManager
Discards the given session.
DiscardSession - Class in org.jgrapes.http.events
Causes a session manager to dicard the given session.
DiscardSession(Session, Channel...) - Constructor for class org.jgrapes.http.events.DiscardSession
Creates a new event.
doRespond(Request.In, IOSubchannel) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Removes the prefix specified in the constructor from the path in the request.
downPipeline() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Gets the down pipeline.
downstreamChannel(Manager, IOSubchannel) - Static method in class org.jgrapes.io.util.LinkedIOSubchannel
Returns the linked downstream channel that has been created for the given component and (upstream) subchannel.
downstreamChannel(Manager, IOSubchannel, Class<T>) - Static method in class org.jgrapes.io.util.LinkedIOSubchannel
Like LinkedIOSubchannel.downstreamChannel(Manager, IOSubchannel), but with the return value of the specified type.
duplicate(T) - Static method in class org.jgrapes.core.events.Error
Duplicate the event.
duplicate() - Method in class org.jgrapes.io.util.ManagedBuffer
Duplicate the buffer.

E

Eligible - Interface in org.jgrapes.core
This interface provides a mechanism for matching objects, using a filter on the object’s “kind” as criterion.
EMPTY_BYTE_BUFFER - Static variable in class org.jgrapes.io.util.ManagedBuffer
 
EMPTY_CHAR_BUFFER - Static variable in class org.jgrapes.io.util.ManagedBuffer
 
enqueued() - Method in class org.jgrapes.core.internal.EventBase
Returns true if the event has been enqueued in a pipeline.
equals(Object) - Method in class org.jgrapes.core.ClassChannel
 
equals(Object) - Method in class org.jgrapes.core.internal.EventChannelsTuple
 
equals(Object) - Method in class org.jgrapes.core.NamedChannel
 
equals(Object) - Method in class org.jgrapes.core.TypedIdKey
 
equals(Object) - Method in class org.jgrapes.http.InMemorySession
 
equals(Object) - Method in class org.jgrapes.http.ResourcePattern
 
Error - Class in org.jgrapes.core.events
This event signals that an error occurred while processing an event.
Error(Error) - Constructor for class org.jgrapes.core.events.Error
Creates a new event as a copy of an existing event.
Error(Event<?>, String) - Constructor for class org.jgrapes.core.events.Error
Creates a new event.
Error(Event<?>, String, Throwable) - Constructor for class org.jgrapes.core.events.Error
Creates a new event caused by the given throwable.
Error(Event<?>, Throwable) - Constructor for class org.jgrapes.core.events.Error
Creates a new event caused by the given throwable.
error() - Method in class org.jgrapes.io.events.Closed
Returns the cause of the Closed event in case of error.
ErrorPrinter - Class in org.jgrapes.core.internal
A fallback error printer.
ErrorPrinter() - Constructor for class org.jgrapes.core.internal.ErrorPrinter
 
Evaluator() - Constructor for class org.jgrapes.core.annotation.Handler.Evaluator
 
Evaluator() - Constructor for class org.jgrapes.http.annotation.RequestHandler.Evaluator
 
event() - Method in class org.jgrapes.core.CompletionEvent
Return the completed event.
Event<T> - Class in org.jgrapes.core
This class is the base class for all events.
Event(Channel...) - Constructor for class org.jgrapes.core.Event
Creates a new event.
event() - Method in class org.jgrapes.core.events.Error
Returns the event that was handled when the problem occurred.
event - Variable in class org.jgrapes.core.internal.EventChannelsTuple
 
EventBase<T> - Class in org.jgrapes.core.internal
Provides the implementations of methods to class Event that need access to classes or methods that are visible in the implementation package only.
EventBase() - Constructor for class org.jgrapes.core.internal.EventBase
 
EventChannelsTuple - Class in org.jgrapes.core.internal
This class provides a container for an event and an arbitrary number of channels.
EventChannelsTuple(EventBase<?>, Channel[]) - Constructor for class org.jgrapes.core.internal.EventChannelsTuple
Create a new instance.
EventPipeline - Interface in org.jgrapes.core
An interface that describes a queue of events that are sent to the components of the associated tree.
EventProcessor - Class in org.jgrapes.core.internal
This class provides the default implementation of an EventPipeline.
execute(ActionEvent<V>) - Method in class org.jgrapes.core.internal.ActionExecutor
Execute the event.
executorService() - Method in interface org.jgrapes.core.EventPipeline
Returns the executor service used by this event pipeline to obtain its thread.
executorService() - Method in class org.jgrapes.core.internal.BufferingEventPipeline
 
executorService() - Method in class org.jgrapes.core.internal.EventProcessor
 
executorService() - Method in class org.jgrapes.net.TcpConnectionManager
Returns the executor service.

F

FileOpened - Class in org.jgrapes.io.events
 
FileOpened(Path, OpenOption...) - Constructor for class org.jgrapes.io.events.FileOpened
Instantiates a new event.
FileStorage - Class in org.jgrapes.io
A component that reads from or writes to a file.
FileStorage(Channel, int) - Constructor for class org.jgrapes.io.FileStorage
Create a new instance using the given size for the read buffers.
FileStorage(Channel) - Constructor for class org.jgrapes.io.FileStorage
Create a new instance using the default buffer size of 8192.
fillFromChannel(ReadableByteChannel) - Method in class org.jgrapes.io.util.ManagedBuffer
Convenience method to fill the buffer from the channel.
fire(T, Channel...) - Method in interface org.jgrapes.core.EventPipeline
Add an event to be sent to components listening for such events on the given channels to the end of the queue.
fire(Event<T>, Channel...) - Method in class org.jgrapes.core.internal.ComponentVertex
 
fire(Event<T>, Channel...) - Method in interface org.jgrapes.core.Manager
Fires the given event on the given channel.
firstResultAssigned() - Method in class org.jgrapes.core.internal.EventBase
flip() - Method in class org.jgrapes.io.util.ManagedBuffer
 
flush() - Method in class org.jgrapes.io.util.ByteBufferOutputStream
Creates and fires a Output event with the buffer being filled if it contains any data.
flush() - Method in class org.jgrapes.io.util.CharBufferWriter
Creates and fires a Output event with the buffer being filled if it contains any data.
fmSessionModel(Optional<Session>) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Build a freemarker model holding the information associated with the session.
forChannels(Class<C>, BiConsumer<E, C>) - Method in class org.jgrapes.core.Event
Execute the given handler for all channels of the given type.
freemarkerConfig() - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Creates the configuration for freemarker template processing.
FreeMarkerRequestHandler - Class in org.jgrapes.http.freemarker
A base class for components that generate responses to HTTP requests which are based on a FreeMarker template.
FreeMarkerRequestHandler(Channel, HandlerDefinition.ChannelReplacements, ClassLoader, String, URI) - Constructor for class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Instantiates a new free marker request handler.
FreeMarkerRequestHandler(Channel, ClassLoader, String, URI) - Constructor for class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Instantiates a new free marker request handler.
from(String, boolean) - Static method in class org.jgrapes.io.events.Output
Convenience method that creates a Output<CharBuffer> event from a String.
from(byte[], boolean) - Static method in class org.jgrapes.io.events.Output
Convenience method that creates a Output<ByteBuffer> event from a byte[].
fromHttpRequest(HttpRequest, boolean, int) - Static method in class org.jgrapes.http.events.Request.In
Creates the appropriate derived request event type from a given HttpRequest.
fromSink(ManagedBuffer<B>, boolean) - Static method in class org.jgrapes.io.events.Input
Create a new event with the given buffer.
fromSink(ManagedBuffer<B>, boolean) - Static method in class org.jgrapes.io.events.Output
Create a new event with the given buffer.
fromSource(ManagedBuffer<B>, boolean) - Static method in class org.jgrapes.io.events.Input
Create a new event with the given buffer.
fromSource(ManagedBuffer<B>, boolean) - Static method in class org.jgrapes.io.events.Output
Create a new event with the given buffer.
fullObjectName(Object) - Static method in class org.jgrapes.core.Components
Returns the full name of the object’s class together with an id (see Components.objectId(Object)).

G

GeneratorRegistry - Class in org.jgrapes.core.internal
A registry for generators.
get() - Method in class org.jgrapes.core.Event
Waits for the event to be completed (see Event.isDone()) and returns the first (or only) result.
get(long, TimeUnit) - Method in class org.jgrapes.core.Event
Causes the invoking thread to wait until the processing of the event has been completed (see Event.isDone()) or the given timeout has expired and returns the first (or only) result.
get(Map<?, ?>, Class<V>, Serializable) - Static method in class org.jgrapes.core.TypedIdKey
Retrieves a value with the given type and id from the given map.
Get(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Get
Create a new event.
Get(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Get
Instantiates a new request.
get() - Method in class org.jgrapes.http.LanguageSelector.Selection
Return the current locale.
get() - Method in class org.jgrapes.io.util.ManagedBuffer.ByteBufferView
Returns the ByteBuffer that represents this view (position, mark, limit).
get() - Method in class org.jgrapes.io.util.ManagedBuffer.CharBufferView
Returns the ByteBuffer that represents this view (position, mark, limit).
getAbsoluteTimeout() - Method in class org.jgrapes.http.SessionManager.SessionManagerInfo
 
getAbsoluteTimeout() - Method in interface org.jgrapes.http.SessionManager.SessionManagerMXBean
 
getAcquireWarningLimit() - Method in interface org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean
Returns the acquire warning limit.
getAllPools() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfos
All pools.
getBufferSize() - Method in class org.jgrapes.io.InputStreamMonitor
Returns the buffer size.
getBufferSize() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo
The size of the buffers in items.
getChannelCount() - Method in class org.jgrapes.net.TcpServer.TcpServerInfo
 
getChannelCount() - Method in interface org.jgrapes.net.TcpServer.TcpServerMXBean
Gets the channel count.
getChannels() - Method in class org.jgrapes.net.TcpServer.TcpServerInfo
 
getChannels() - Method in interface org.jgrapes.net.TcpServer.TcpServerMXBean
Gets the channels.
getComponentPath() - Method in class org.jgrapes.http.SessionManager.SessionManagerInfo
 
getComponentPath() - Method in interface org.jgrapes.http.SessionManager.SessionManagerMXBean
 
getComponentPath() - Method in class org.jgrapes.net.TcpServer.TcpServerInfo
 
getComponentPath() - Method in interface org.jgrapes.net.TcpServer.TcpServerMXBean
Gets the component path.
getConnectionLimiter() - Method in class org.jgrapes.net.TcpServer
Returns the connection limiter.
getConnectionsPerServerStatistics() - Method in interface org.jgrapes.net.TcpServer.TcpServerSummaryMXBean
Gets the connections per server statistics.
getCookieName() - Method in class org.jgrapes.http.LanguageSelector.Selection
Gets the cookie name.
getCookiePath() - Method in class org.jgrapes.http.LanguageSelector.Selection
Gets the cookie path.
getCreated() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo
The number of buffers created by this pool.
getCreatedPerPoolStatistics() - Method in interface org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean
Summary information about the created buffers.
getDefaultDrainDelay() - Method in interface org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean
Returns the drain delay in milli seconds.
getDownstreamPool() - Method in class org.jgrapes.net.TcpServer.TcpServerMXBean.ChannelInfo
Gets the downstream pool.
getIdleTimeout() - Method in class org.jgrapes.http.SessionManager.SessionManagerInfo
 
getIdleTimeout() - Method in interface org.jgrapes.http.SessionManager.SessionManagerMXBean
 
getLastModifiedAt() - Method in class org.jgrapes.http.ResponseCreationSupport.ResourceInfo
 
getManagers() - Method in interface org.jgrapes.http.SessionManager.SessionManagerSummaryMXBean
Gets the managers.
getMaximum() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo
The maximum number of buffers created by this pool.
getMaxSessions() - Method in class org.jgrapes.http.SessionManager.SessionManagerInfo
 
getMaxSessions() - Method in interface org.jgrapes.http.SessionManager.SessionManagerMXBean
 
getMinimalPurgeableTime() - Method in class org.jgrapes.net.TcpServer
Gets the minimal purgeable time.
getNonEmptyPools() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfos
Pools that have at least managed buffer enqueued (ready to be acquired).
getPath() - Method in class org.jgrapes.http.SessionManager.SessionManagerInfo
 
getPath() - Method in interface org.jgrapes.http.SessionManager.SessionManagerMXBean
 
getPooled() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo
The number of buffers pooled (ready to be acquired).
getPooledPerPoolStatistics() - Method in interface org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean
Summary information about the pooled buffers.
getPoolInfos() - Method in interface org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean
Informations about the pools.
getPort() - Method in class org.jgrapes.net.TcpServer.TcpServerInfo
 
getPort() - Method in interface org.jgrapes.net.TcpServer.TcpServerMXBean
Gets the port.
getPreserved() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo
The number of buffers preserved.
getServers() - Method in interface org.jgrapes.net.TcpServer.TcpServerSummaryMXBean
Gets the servers.
getSessionCount() - Method in class org.jgrapes.http.SessionManager.SessionManagerInfo
 
getSessionCount() - Method in interface org.jgrapes.http.SessionManager.SessionManagerMXBean
 
getUpstreamPool() - Method in class org.jgrapes.net.TcpServer.TcpServerMXBean.ChannelInfo
Gets the upstream pool.
getUsedPools() - Method in class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfos
Pools that have at least one associated buffer (in pool or in use).

H

HalfClosed - Class in org.jgrapes.io.events
This event signals that an I/O subchannel has been closed on the other end.
HalfClosed() - Constructor for class org.jgrapes.io.events.HalfClosed
 
handled() - Method in class org.jgrapes.core.Event
Invoked after all handlers for the event have been executed.
handled() - Method in class org.jgrapes.core.internal.EventBase
handled() - Method in class org.jgrapes.io.events.IOEvent
 
handleOps(int) - Method in interface org.jgrapes.io.NioHandler
Invoked by the NioDispatcher when operations are pending.
handleOps(int) - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
 
handleOps(int) - Method in class org.jgrapes.net.TcpServer
 
Handler - Annotation Type in org.jgrapes.core.annotation
This is the basic, general purpose handler annotation provided as part of the core package.
handler() - Method in class org.jgrapes.io.events.NioRegistration
 
Handler.Evaluator - Class in org.jgrapes.core.annotation
This class provides the Handler.Evaluator for the Handler annotation provided by the core package.
Handler.NoChannel - Class in org.jgrapes.core.annotation
The default value for the channels parameter of the annotation.
Handler.NoEvent - Class in org.jgrapes.core.annotation
The default value for the events parameter of the annotation.
HandlerDefinition - Annotation Type in org.jgrapes.core.annotation
This annotation tags some other annotation as a handler annotation.
HandlerDefinition.ChannelReplacements - Class in org.jgrapes.core.annotation
Represents channel (criteria) replacements that are to be applied to channels elements of Handler annotations.
HandlerDefinition.Evaluator - Interface in org.jgrapes.core.annotation
This interface allows access to the properties defined by arbitrary handler annotations in a uniform way.
HandlerScope - Interface in org.jgrapes.core
This interface allows to verify whether a given event fired on one of the given channels is handled by a handler.
handlingError(EventPipeline, Throwable) - Method in class org.jgrapes.core.Event
Implements the default behavior for handling events thrown by a handler.
HandlingError - Class in org.jgrapes.core.events
This event signals that a throwable occurred while executing a handler.
HandlingError(HandlingError) - Constructor for class org.jgrapes.core.events.HandlingError
Creates a new event as a copy of an existing event.
HandlingError(Event<?>, Throwable) - Constructor for class org.jgrapes.core.events.HandlingError
Creates a new event caused by the given throwable.
handlingError(EventPipeline, Throwable) - Method in class org.jgrapes.core.internal.EventBase
Invoked when an exception occurs while invoking a handler for an event.
hasArray() - Method in class org.jgrapes.io.util.ManagedBuffer
 
hashCode() - Method in class org.jgrapes.core.ClassChannel
 
hashCode() - Method in class org.jgrapes.core.internal.EventChannelsTuple
 
hashCode() - Method in class org.jgrapes.core.NamedChannel
 
hashCode() - Method in class org.jgrapes.core.TypedIdKey
 
hashCode() - Method in class org.jgrapes.http.InMemorySession
 
hashCode() - Method in class org.jgrapes.http.ResourcePattern
 
hasRemaining() - Method in class org.jgrapes.io.events.IOEvent
 
hasRemaining() - Method in class org.jgrapes.io.util.ManagedBuffer
 
Head(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Head
Create a new event.
Head(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Head
Instantiates a new request.
host() - Method in class org.jgrapes.http.ResourcePattern
 
HostUnresolved - Class in org.jgrapes.http.events
Indicates that a host name could not be resolved.
HostUnresolved(HostUnresolved) - Constructor for class org.jgrapes.http.events.HostUnresolved
Creates a new event as a copy of an existing event.
HostUnresolved(Event<?>, String) - Constructor for class org.jgrapes.http.events.HostUnresolved
 
HttpConnected - Class in org.jgrapes.http.events
Signals that a TCP connection for a HttpRequest has been established.
HttpConnected(Request.Out, SocketAddress, SocketAddress) - Constructor for class org.jgrapes.http.events.HttpConnected
Instantiates a new event.
HttpConnector - Class in org.jgrapes.http
A converter component that receives and sends web application layer messages and byte buffers on associated network channels.
HttpConnector(Channel, Channel) - Constructor for class org.jgrapes.http.HttpConnector
Create a new connector that uses the networkChannel for network level I/O.
httpRequest() - Method in class org.jgrapes.http.events.Request.In
Returns the “raw” request as provided by the HTTP decoder.
httpRequest() - Method in class org.jgrapes.http.events.Request.Out
The HTTP request that will be sent by the event.
HttpRequestHandlerFactory - Interface in org.jgrapes.http
A component factory that creates components with at least one handler for Request events.
HttpServer - Class in org.jgrapes.http
A converter component that receives and sends byte buffers on a network channel and web application layer messages on IOSubchannels of its channel.
HttpServer(Channel, Channel, Class<? extends Request.In>...) - Constructor for class org.jgrapes.http.HttpServer
Create a new server that uses the networkChannel for network level I/O.
HttpServer(Channel, InetSocketAddress, Class<? extends Request.In>...) - Constructor for class org.jgrapes.http.HttpServer
Create a new server that creates its own TcpServer with the given address and uses it for network level I/O.
hub() - Method in class org.jgrapes.io.util.LinkedIOSubchannel
Returns the component that manages this channel.

I

id() - Method in class org.jgrapes.http.InMemorySession
Returns the session id.
id() - Method in interface org.jgrapes.http.Session
Returns the session id.
idleTimeout() - Method in class org.jgrapes.http.SessionManager
 
idName() - Method in class org.jgrapes.http.SessionManager
The name used for the session id cookie.
idObject() - Method in interface org.jgrapes.core.Components.IdInfoProvider
Returns the object to be used for generating the id.
idScope() - Method in interface org.jgrapes.core.Components.IdInfoProvider
Returns the scope.
idScope() - Method in interface org.jgrapes.core.EventPipeline
All pipelines use the same id scope to make them uniquely identifiable by their number.
In(String, HttpRequest, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In
Creates a new request event with the associated Request.In.Completed event.
includes(Eligible, Eligible[]) - Method in interface org.jgrapes.core.HandlerScope
Matches the given event and channels against the criteria for events and channels of this handler scope.
includes(Eligible, Eligible[]) - Method in class org.jgrapes.http.annotation.RequestHandler.Evaluator.Scope
 
initComponentsHandlers(HandlerDefinition.ChannelReplacements) - Method in class org.jgrapes.core.internal.ComponentVertex
Initialize the handler list of this component.
InitialPreferences - Class in org.jgrapes.util.events
A special ConfigurationUpdate event that is used by the PreferencesStore for reporting the configuration on startup.
InitialPreferences(String) - Constructor for class org.jgrapes.util.events.InitialPreferences
Create a new event.
InMemorySession - Class in org.jgrapes.http
Implements the Session interface using a ConcurrentHashMap.
InMemorySession(String) - Constructor for class org.jgrapes.http.InMemorySession
Create a new session.
InMemorySessionManager - Class in org.jgrapes.http
A in memory session manager.
InMemorySessionManager() - Constructor for class org.jgrapes.http.InMemorySessionManager
Creates a new session manager with its channel set to itself and the path set to “/”.
InMemorySessionManager(String) - Constructor for class org.jgrapes.http.InMemorySessionManager
Creates a new session manager with its channel set to itself and the path set to the given path.
InMemorySessionManager(Channel) - Constructor for class org.jgrapes.http.InMemorySessionManager
Creates a new session manager with its channel set to the given channel and the path to “/”.
InMemorySessionManager(Channel, String) - Constructor for class org.jgrapes.http.InMemorySessionManager
Creates a new session manager with the given channel and path.
InMemorySessionManager(Channel, String, int, String) - Constructor for class org.jgrapes.http.InMemorySessionManager
Creates a new session manager using the given channel and path.
Input<T extends Buffer> - Class in org.jgrapes.io.events
This event signals that a new chunk of data has successfully been obtained from some source.
InputStreamMonitor - Class in org.jgrapes.io
A component that watches for new input on an InputStream.
InputStreamMonitor(Channel, InputStream, Channel) - Constructor for class org.jgrapes.io.InputStreamMonitor
Creates a new input stream monitor with its channel set to the given channel.
InputStreamMonitor(Channel, InputStream) - Constructor for class org.jgrapes.io.InputStreamMonitor
Creates a new input stream monitor with its channel set to the given channel.
InputStreamPipeline - Class in org.jgrapes.io.util
Forwards the content of an input stream as a sequence of Output events.
InputStreamPipeline(InputStream, IOSubchannel, EventPipeline) - Constructor for class org.jgrapes.io.util.InputStreamPipeline
Creates a new pipeline that sends the data from the given input stream as events on the given channel, using the given event pipeline.
InputStreamPipeline(InputStream, IOSubchannel) - Constructor for class org.jgrapes.io.util.InputStreamPipeline
Creates a new pipeline that sends the data from the given input stream as events on the given channel, using the channel’s response pipeline.
instance() - Static method in class org.jgrapes.core.internal.GeneratorRegistry
Returns the singleton instance of the registry.
InternalEventPipelineWrapper - Interface in org.jgrapes.core.internal
Must be implemented by classes that implement EventPipeline.
ioChannel() - Method in class org.jgrapes.io.events.NioRegistration
 
IOError - Class in org.jgrapes.io.events
A special kind of Error that signals I/O related problems.
IOError(IOError) - Constructor for class org.jgrapes.io.events.IOError
Creates a new event as a copy of an existing event.
IOError(Event<?>, String) - Constructor for class org.jgrapes.io.events.IOError
Creates a new instance.
IOError(Event<?>, String, Throwable) - Constructor for class org.jgrapes.io.events.IOError
Creates a new instance.
IOError(Event<?>, Throwable) - Constructor for class org.jgrapes.io.events.IOError
Creates a new instance.
IOEvent<T extends Buffer> - Class in org.jgrapes.io.events
Events of this type signal that a new chunk of data is available for processing.
IOEvent(ManagedBuffer<T>, boolean) - Constructor for class org.jgrapes.io.events.IOEvent
Instantiates a new IO event.
IOSubchannel - Interface in org.jgrapes.io
Represents a subchannel for grouping input and output events related to an I/O resource such as an opened file or a network connection.
IOSubchannel.DefaultIOSubchannel - Class in org.jgrapes.io
A simple implementation of IOSubchannel.
isCancelled() - Method in class org.jgrapes.core.Event
 
isDirect() - Method in class org.jgrapes.io.util.ManagedBuffer
 
isDirectory - Variable in class org.jgrapes.http.ResponseCreationSupport.ResourceInfo
 
isDirectory() - Method in class org.jgrapes.http.ResponseCreationSupport.ResourceInfo
 
isDone() - Method in class org.jgrapes.core.Event
Check if this event has completed.
isEligibleFor(Object) - Method in class org.jgrapes.core.ClassChannel
Returns true if the value is the same class or a base class of this channel’s class.
isEligibleFor(Object) - Method in class org.jgrapes.core.Component
Matches the object itself (using identity comparison) or the Channel class.
isEligibleFor(Object) - Method in interface org.jgrapes.core.Eligible
Returns true if this Eligible is met by the provided criterion.
isEligibleFor(Object) - Method in class org.jgrapes.core.Event
Returns true if the criterion is of the same class or a base class of this event’s class.
isEligibleFor(Object) - Method in class org.jgrapes.core.internal.ActionEvent
 
isEligibleFor(Object) - Method in class org.jgrapes.core.internal.ComponentProxy
Matches the object itself (using identity comparison) or the Channel class.
isEligibleFor(Object) - Method in class org.jgrapes.core.NamedChannel
Returns true if the value matches the name of this channel or is the broadcast channel’s value.
isEligibleFor(Object) - Method in class org.jgrapes.core.NamedEvent
Returns true if the criterion is Event.class (representing “any event”) or if the criterion is a String equal to this event’s kind (the String passed to the constructor).
isEligibleFor(Object) - Method in interface org.jgrapes.core.Subchannel
Delegates to main channel.
isEligibleFor(Object) - Method in class org.jgrapes.http.events.Request.In
 
isEmpty() - Method in class org.jgrapes.core.Components.PoolingIndex
Checks if the index is empty.
isEndOfRecord() - Method in class org.jgrapes.io.events.IOEvent
Return the end of record flag passed to the constructor.
isExhausted() - Method in class org.jgrapes.core.internal.GeneratorRegistry
Checks if is exhausted (no generators left)
isExplicitlySet() - Method in class org.jgrapes.http.LanguageSelector.Selection
Checks if is explicitly set.
isPurgeable() - Method in interface org.jgrapes.net.TcpChannel
Checks if the connection is purgeable.
isPurgeable() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Checks if is purgeable.
isPurgeable() - Method in class org.jgrapes.net.TcpServer.TcpServerMXBean.ChannelInfo
Checks if is purgeable.
isReadOnly() - Method in class org.jgrapes.io.util.ManagedBuffer
 
isSecure() - Method in class org.jgrapes.net.events.Accepted
 
isStopped() - Method in class org.jgrapes.core.Event
Returns true if Event.stop() has been called.
isStopped() - Method in class org.jgrapes.core.internal.EventBase
iterator() - Method in class org.jgrapes.core.internal.ComponentVertex
 
iterator() - Method in interface org.jgrapes.core.Manager
Returns an iterator that visits the components of the component subtree that has this node as root.

J

JsonConfigurationStore - Class in org.jgrapes.util
This component provides a store for an application’s configuration backed by a JSON file.
JsonConfigurationStore(Channel, File) - Constructor for class org.jgrapes.util.JsonConfigurationStore
Creates a new component with its channel set to the given channel and the given file.
JsonConfigurationStore(Channel, File, boolean) - Constructor for class org.jgrapes.util.JsonConfigurationStore
Creates a new component with its channel set to the given channel and the given file.

K

key() - Method in class org.jgrapes.util.events.KeyValueStoreUpdate.Action
Key.
keySet() - Method in class org.jgrapes.core.Components.PoolingIndex
Returns all keys.
keysSize() - Method in class org.jgrapes.core.Components.PoolingIndex
Returns the number of keys in the index.
KeyValueStoreData - Class in org.jgrapes.util.events
Defines an optional completion event for a KeyValueStoreQuery.
KeyValueStoreData(KeyValueStoreQuery, Channel...) - Constructor for class org.jgrapes.util.events.KeyValueStoreData
 
KeyValueStoreQuery - Class in org.jgrapes.util.events
A query event for a key/value store.
KeyValueStoreQuery(String) - Constructor for class org.jgrapes.util.events.KeyValueStoreQuery
Creates a new event that queries using the given key.
KeyValueStoreQuery(String, Channel) - Constructor for class org.jgrapes.util.events.KeyValueStoreQuery
Convenience constructor for creating a new event with a completion event of type KeyValueStoreData that is fired on the given channel.
KeyValueStoreUpdate - Class in org.jgrapes.util.events
An event that triggers updates or deletions in a key/value store.
KeyValueStoreUpdate() - Constructor for class org.jgrapes.util.events.KeyValueStoreUpdate
 
KeyValueStoreUpdate.Action - Class in org.jgrapes.util.events
The base class for all actions.
KeyValueStoreUpdate.Deletion - Class in org.jgrapes.util.events
A key (and value) deletion.
KeyValueStoreUpdate.Update - Class in org.jgrapes.util.events
A value update.

L

LanguageSelector - Class in org.jgrapes.http
A component that attempts to derive information about language preferences from requests in the specified scope (usually “/”) and make them available as a LanguageSelector.Selection object associated with the request event using Selection.class as association identifier.
LanguageSelector() - Constructor for class org.jgrapes.http.LanguageSelector
Creates a new language selector component with its channel set to itself and the scope set to “/”.
LanguageSelector(String) - Constructor for class org.jgrapes.http.LanguageSelector
Creates a new language selector component with its channel set to itself and the scope set to the given value.
LanguageSelector(Channel) - Constructor for class org.jgrapes.http.LanguageSelector
Creates a new language selector component with its channel set to the given channel and the scope to “/”.
LanguageSelector(Channel, String) - Constructor for class org.jgrapes.http.LanguageSelector
Creates a new language selector component with its channel set to the given channel and the scope to the given scope.
LanguageSelector.Selection - Class in org.jgrapes.http
Represents a locale selection.
lastModifiedAt - Variable in class org.jgrapes.http.ResponseCreationSupport.ResourceInfo
 
lastUsedAt() - Method in class org.jgrapes.http.InMemorySession
Returns the last used (referenced in request) time stamp.
lastUsedAt() - Method in interface org.jgrapes.http.Session
Returns the last used (referenced in request) time stamp.
limit() - Method in class org.jgrapes.io.util.ManagedBuffer
 
limit(int) - Method in class org.jgrapes.io.util.ManagedBuffer
 
linkBackingBuffer(ManagedBuffer<T>) - Method in class org.jgrapes.io.util.ManagedBuffer
Links this instance’s backing buffer (temporarily) to the given buffer’s backing buffer.
LinkedIOSubchannel - Class in org.jgrapes.io.util
Provides an I/O subchannel that is linked to another I/O subchannel.
LinkedIOSubchannel(Manager, Channel, IOSubchannel, EventPipeline) - Constructor for class org.jgrapes.io.util.LinkedIOSubchannel
Creates a new LinkedIOSubchannel for a given main channel that links to the give I/O subchannel.
LinkedIOSubchannel(Manager, Channel, IOSubchannel, EventPipeline, boolean) - Constructor for class org.jgrapes.io.util.LinkedIOSubchannel
Creates a new LinkedIOSubchannel for a given main channel that links to a given I/O subchannel.
listenAddress() - Method in class org.jgrapes.net.events.Ready
The address that the server has bound to.
localAddress() - Method in class org.jgrapes.net.events.Accepted
 
localAddress() - Method in class org.jgrapes.net.events.Connected
 
localAddress() - Method in interface org.jgrapes.net.TcpChannel
Returns the local address.
localAddress() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
 
locale() - Method in interface org.jgrapes.http.Session
Convenience method for retrieving the locale set by LanguageSelector from the session.
lockBuffer() - Method in class org.jgrapes.io.util.ManagedBuffer
Increases the buffer’s lock count.
logger - Static variable in class org.jgrapes.io.util.ManagedBufferPool
 
lookupSession(String) - Method in class org.jgrapes.http.InMemorySessionManager
 
lookupSession(String) - Method in class org.jgrapes.http.SessionManager
Lookup the session with the given id.

M

mainChannel() - Method in class org.jgrapes.core.Subchannel.DefaultSubchannel
 
mainChannel() - Method in interface org.jgrapes.core.Subchannel
Returns the main channel.
ManagedBuffer<T extends Buffer> - Class in org.jgrapes.io.util
A wrapper around a Buffer that maintains a lock count for that buffer.
ManagedBuffer(T, BufferCollector<ManagedBuffer<T>>) - Constructor for class org.jgrapes.io.util.ManagedBuffer
Create a new Managed buffer, backed by the given buffer, with a lock count of one.
managedBuffer() - Method in class org.jgrapes.io.util.ManagedBuffer.ByteBufferView
Returns the managed buffer that this reader is a view of.
managedBuffer() - Method in class org.jgrapes.io.util.ManagedBuffer.CharBufferView
Returns the managed buffer that this reader is a view of.
ManagedBuffer.ByteBufferView - Class in org.jgrapes.io.util
A read-only view of the managed buffer’s content (backing buffer) and a reference to the managed buffer.
ManagedBuffer.CharBufferView - Class in org.jgrapes.io.util
A read-only view of the managed buffer’s content (backing buffer) and a reference to the managed buffer.
ManagedBufferPool<W extends ManagedBuffer<T>,T extends Buffer> - Class in org.jgrapes.io.util
A queue based buffer pool.
ManagedBufferPool(BiFunction<T, BufferCollector<W>, W>, Supplier<T>, int, int) - Constructor for class org.jgrapes.io.util.ManagedBufferPool
Create a pool that contains a varying number of (wrapped) buffers.
ManagedBufferPool(BiFunction<T, BufferCollector<W>, W>, Supplier<T>, int) - Constructor for class org.jgrapes.io.util.ManagedBufferPool
Create a pool that keeps up to the given number of (wrapped) buffers in the pool and also uses that number as upper limit.
ManagedBufferPool.ManagedBufferPoolMXBean - Interface in org.jgrapes.io.util
An MBean interface for getting information about the managed buffer pools.
ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo - Class in org.jgrapes.io.util
Information about a single managed pool.
ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfos - Class in org.jgrapes.io.util
Three views on the existing pool.
manager(ComponentType) - Static method in class org.jgrapes.core.Components
Returns a component’s manager.
manager(ComponentType, Channel) - Static method in class org.jgrapes.core.Components
Returns a component’s manager like Components.manager(ComponentType).
Manager - Interface in org.jgrapes.core
The interface that provides the methods for manipulating the component and the component’s hierarchy and for firing events.
manager() - Method in class org.jgrapes.http.SessionManager.SessionManagerInfo
Returns the session manager.
manager() - Method in class org.jgrapes.io.util.ManagedBuffer
Return the buffer’s manager.
mapOf() - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mapOf(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class org.jgrapes.core.Components
Provisional replacement for method available in Java 9.
mark() - Method in class org.jgrapes.io.util.ManagedBuffer
 
matches(URI) - Method in class org.jgrapes.http.ResourcePattern
Matches the given resource URI against the pattern.
matches(String, URI) - Static method in class org.jgrapes.http.ResourcePattern
Matches the given pattern against the given resource URI.
matchLevels() - Method in class org.jgrapes.http.HttpServer
 
maxAge(HttpRequest, MediaType) - Method in class org.jgrapes.http.ResponseCreationSupport.DefaultMaxAgeCalculator
 
maxAge(HttpRequest, MediaType) - Method in interface org.jgrapes.http.ResponseCreationSupport.MaxAgeCalculator
Calculate a max age value for a response using the given request and the media type of the repsonse.
maxAgeCalculator() - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
 
maxAgeCalculator() - Method in class org.jgrapes.http.StaticContentDispatcher
 
maxSessions() - Method in class org.jgrapes.http.SessionManager
 
merge(InternalEventPipeline) - Method in class org.jgrapes.core.internal.BufferingEventPipeline
 
merge(InternalEventPipeline) - Method in class org.jgrapes.core.internal.EventProcessor
 
message() - Method in class org.jgrapes.core.events.Error
Returns the message passed to the constructor.
MessageReceived<T> - Class in org.jgrapes.http.events
Base class for events that signal the reception of a message.
MessageReceived(Channel...) - Constructor for class org.jgrapes.http.events.MessageReceived
Instantiates a new message.

N

name - Variable in class org.jgrapes.core.internal.ActionEvent
 
name() - Method in class org.jgrapes.core.internal.ComponentVertex
 
name() - Method in interface org.jgrapes.core.Manager
Returns the (optional) name of the component.
name() - Method in class org.jgrapes.io.util.ManagedBufferPool
Returns the name of this pool.
NamedChannel - Class in org.jgrapes.core
This class provides channels that are identified by a name (string).
NamedChannel(String) - Constructor for class org.jgrapes.core.NamedChannel
Creates a new named channel with the given name.
NamedEvent<T> - Class in org.jgrapes.core
A class for events using a simple name as the event’s kind.
NamedEvent(String) - Constructor for class org.jgrapes.core.NamedEvent
Creates a new named event with the given name.
newByteBufferView() - Method in class org.jgrapes.io.util.ManagedBuffer
Creates a new ByteBuffer view.
newCharBufferView() - Method in class org.jgrapes.io.util.ManagedBuffer
Creates a new CharBuffer view.
newEventPipeline() - Method in class org.jgrapes.core.internal.ComponentVertex
 
newEventPipeline(ExecutorService) - Method in class org.jgrapes.core.internal.ComponentVertex
 
newEventPipeline() - Method in interface org.jgrapes.core.Manager
Return a new EventPipeline that processes the added events using a thread from a thread pool.
newEventPipeline(ExecutorService) - Method in interface org.jgrapes.core.Manager
Return a new EventPipeline that processes the added events using threads from the given executor service.
newEventsParent - Static variable in class org.jgrapes.core.internal.EventProcessor
 
newSyncEventPipeline() - Method in class org.jgrapes.core.internal.ComponentVertex
 
newSyncEventPipeline() - Method in interface org.jgrapes.core.Manager
Return a new EventPipeline that processes an added event (and all events caused by it) before returning from the EventPipeline.fire(T, org.jgrapes.core.Channel...) method.
nioChannel() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Gets the nio channel.
NioDispatcher - Class in org.jgrapes.io
A helper component that provides the central hub for non blocking I/O components.
NioDispatcher() - Constructor for class org.jgrapes.io.NioDispatcher
Creates a new Dispatcher.
NioDispatcher.Registration - Class in org.jgrapes.io
Represents a NIO registration.
NioHandler - Interface in org.jgrapes.io
Defines the contract between a component using non blocking I/O and the NioDispatcher.
NioRegistration - Class in org.jgrapes.io.events
Signal a registration request to a registry.
NioRegistration(NioHandler, SelectableChannel, int, Channel) - Constructor for class org.jgrapes.io.events.NioRegistration
Creates a new registration event for the given handler, using the given NIO channel and handling the given operations.
NioRegistration.Completed - Class in org.jgrapes.io.events
The completion event for a NioRegistration event.
NioRegistration.Registration - Class in org.jgrapes.io.events
Passed during registration.
NoChannel() - Constructor for class org.jgrapes.core.annotation.Handler.NoChannel
 
node() - Method in class org.jgrapes.core.events.Attached
Return the node that has been attached.
node() - Method in class org.jgrapes.core.events.Detached
 
NoEvent() - Constructor for class org.jgrapes.core.annotation.Handler.NoEvent
 
NOOP_COLLECTOR - Static variable in interface org.jgrapes.io.util.BufferCollector
A predefined buffer collector that does nothing when the managed buffer is no longer used.
noopCollector() - Static method in interface org.jgrapes.io.util.BufferCollector
A type-safe way to get the BufferCollector.NOOP_COLLECTOR.

O

objectId(Object) - Static method in class org.jgrapes.core.Components
Returns an id of the object that is unique within a specific scope.
objectName(Object) - Static method in class org.jgrapes.core.Components
Returns the name of the object’s class together with an id (see Components.objectId(Object)).
onAccepted(Accepted, IOSubchannel) - Method in class org.jgrapes.http.HttpServer
Creates a new downstream connection as LinkedIOSubchannel of the network connection, a HttpRequestDecoder and a HttpResponseEncoder.
onAccepted(Accepted, IOSubchannel) - Method in class org.jgrapes.net.SslCodec
Creates a new downstream connection as LinkedIOSubchannel of the network connection together with an SSLEngine.
onClose(Close, HttpConnector.WebAppMsgChannel) - Method in class org.jgrapes.http.HttpConnector
Handles a close event from the application channel.
onClose(Close, HttpServer.WebAppMsgChannel) - Method in class org.jgrapes.http.HttpServer
Handles a close event from downstream by closing the upstream connections.
onClose(Close, Channel) - Method in class org.jgrapes.io.FileStorage
Handle close by closing the file associated with the channel.
onClose(Close, SslCodec.PlainChannel) - Method in class org.jgrapes.net.SslCodec
Forwards a close event upstream.
onClose(Close) - Method in class org.jgrapes.net.TcpConnector
Shuts down the one of the connections.
onClose(Close) - Method in class org.jgrapes.net.TcpServer
Shuts down the server or one of the connections to the server.
onClosed(Closed, TcpChannel) - Method in class org.jgrapes.http.HttpConnector
Called when the network connection is closed.
onClosed(Closed, IOSubchannel) - Method in class org.jgrapes.http.HttpServer
Forwards a Closed event to the application channel.
onClosed(Closed, IOSubchannel) - Method in class org.jgrapes.net.SslCodec
Handles a close event from the encrypted channel (client).
onConfigurationUpdate(ConfigurationUpdate) - Method in class org.jgrapes.io.InputStreamMonitor
The component can be configured with events that include a path (see @link ConfigurationUpdate.paths()) that matches this components path (see Manager.componentPath()).
onConfigurationUpdate(ConfigurationUpdate) - Method in class org.jgrapes.net.TcpServer
The component can be configured with events that include a path (see @link ConfigurationUpdate.paths()) that matches this components path (see Manager.componentPath()).
onConfigurationUpdate(ConfigurationUpdate) - Method in class org.jgrapes.util.JsonConfigurationStore
Merges and saves configuration updates.
onConfigurationUpdate(ConfigurationUpdate) - Method in class org.jgrapes.util.PreferencesStore
Merges and saves configuration updates.
onConnected(Connected, TcpChannel) - Method in class org.jgrapes.http.HttpConnector
Called when the network connection is established.
onConnected(Connected, IOSubchannel) - Method in class org.jgrapes.net.SslCodec
Creates a new downstream connection as LinkedIOSubchannel of the network connection together with an SSLEngine.
onGet(Request.In.Get, IOSubchannel) - Method in class org.jgrapes.http.StaticContentDispatcher
Handles a GET request.
onInput(Input<ByteBuffer>, TcpChannel) - Method in class org.jgrapes.http.HttpConnector
Processes any input from the network layer.
onInput(Input<ByteBuffer>, IOSubchannel) - Method in class org.jgrapes.http.HttpServer
Handles data from the client (from upstream).
onInput(Input<ByteBuffer>, Channel) - Method in class org.jgrapes.io.FileStorage
Handle input by writing it to the file, if a channel exists.
onInput(Input<ByteBuffer>, IOSubchannel) - Method in class org.jgrapes.net.SslCodec
Handles encrypted data from upstream (the network).
onIoError(IOError) - Method in class org.jgrapes.http.HttpConnector
Handles I/O error events from the network layer.
onIOError(IOError, IOSubchannel) - Method in class org.jgrapes.net.SslCodec
Handles an IOError event from the encrypted channel (client) by sending it downstream.
onNioRegistration(NioRegistration) - Method in class org.jgrapes.io.NioDispatcher
Handle the NIO registration.
onOpenConnection(OpenTcpConnection) - Method in class org.jgrapes.net.SslCodec
Forward the connection request to the encrypted network.
onOpenConnection(OpenTcpConnection) - Method in class org.jgrapes.net.TcpConnector
Opens a connection to the end point specified in the event.
onOptions(Request.In.Options, IOSubchannel) - Method in class org.jgrapes.http.HttpServer
Provides a fallback handler for an OPTIONS request with asterisk.
onOutput(Output<?>, HttpConnector.WebAppMsgChannel) - Method in class org.jgrapes.http.HttpConnector
Handles output from the application.
onOutput(Output<?>, HttpServer.WebAppMsgChannel) - Method in class org.jgrapes.http.HttpServer
Receives the message body of a response.
onOutput(Output<ByteBuffer>, Channel) - Method in class org.jgrapes.io.FileStorage
Handle Output events by writing them to the file, if a channel exists.
onOutput(Output<ByteBuffer>, SslCodec.PlainChannel) - Method in class org.jgrapes.net.SslCodec
Sends decrypted data through the engine and then upstream.
onOutput(Output<ByteBuffer>, TcpConnectionManager.TcpChannelImpl) - Method in class org.jgrapes.net.TcpConnectionManager
Writes the data passed in the event.
onProtocolSwitchAccepted(ProtocolSwitchAccepted, HttpServer.WebAppMsgChannel) - Method in class org.jgrapes.http.HttpServer
Send the response indicating that the protocol switch was accepted and causes subsequent data to be handled as Input and Output events on the channel.
onProtocolSwitchAccepted(ProtocolSwitchAccepted, IOSubchannel) - Method in class org.jgrapes.http.LanguageSelector
Handles a procotol switch by associating the language selection with the channel.
onProtocolSwitchAccepted(ProtocolSwitchAccepted, IOSubchannel) - Method in class org.jgrapes.http.SessionManager
Associates the channel with the session from the upgrade request.
onPurge(Purge, IOSubchannel) - Method in class org.jgrapes.http.HttpServer
Forwards a Purge event to the application channel.
onPurge(Purge, IOSubchannel) - Method in class org.jgrapes.io.PurgeTerminator
Handles a Purge event by sending a Close event.
onPurge(Purge, IOSubchannel) - Method in class org.jgrapes.net.SslCodec
Forwards a Purge event downstream.
onRegistered(NioRegistration.Completed) - Method in class org.jgrapes.net.TcpConnector
Called when the new socket channel has successfully been registered with the nio dispatcher.
onRegistered(NioRegistration.Completed) - Method in class org.jgrapes.net.TcpServer
Handles the successful channel registration.
onRequest(Request.Out) - Method in class org.jgrapes.http.HttpConnector
Starts the processing of a request from the application layer.
onRequest(Request.In) - Method in class org.jgrapes.http.LanguageSelector
Associates the event with a LanguageSelector.Selection object using Selection.class as association identifier.
onRequest(Request.In) - Method in class org.jgrapes.http.SessionManager
Associates the event with a Session object using Session.class as association identifier.
onRequestCompleted(Request.In.Completed, IOSubchannel) - Method in class org.jgrapes.http.HttpServer
Checks whether the request has been handled (value of Request event set to true) or the status code in the prepared response is no longer “Not Implemented”.
onResponse(Response, HttpServer.WebAppMsgChannel) - Method in class org.jgrapes.http.HttpServer
Handles a response event from downstream by sending it through an HttpResponseEncoder that generates the data (encoded information) and sends it upstream with Output events.
onSaveInput(SaveInput) - Method in class org.jgrapes.io.FileStorage
Opens a file for writing using the properties of the event.
onSaveOutput(SaveOutput) - Method in class org.jgrapes.io.FileStorage
Opens a file for writing using the properties of the event.
onStart(Start) - Method in class org.jgrapes.io.InputStreamMonitor
Starts a thread that continuously reads available data from the input stream.
onStart(Start) - Method in class org.jgrapes.io.NioDispatcher
Starts this dispatcher.
onStart(Start) - Method in class org.jgrapes.net.TcpServer
Starts the server.
onStart(Start) - Method in class org.jgrapes.util.JsonConfigurationStore
Intercepts the Start event and fires a ConfigurationUpdate event.
onStart(Start) - Method in class org.jgrapes.util.PreferencesStore
Intercepts the Start event and fires a ConfigurationUpdate event.
onStop(Stop) - Method in class org.jgrapes.io.FileStorage
Handle stop by closing all files.
onStop(Stop) - Method in class org.jgrapes.io.InputStreamMonitor
Stops the thread that reads data from the input stream.
onStop(Stop) - Method in class org.jgrapes.io.NioDispatcher
Stops the thread that is associated with this dispatcher.
onStop(Stop) - Method in class org.jgrapes.net.TcpServer
Shuts down the server by firing a Close using the server as channel.
onStreamFile(StreamFile) - Method in class org.jgrapes.io.FileStorage
Opens a file for reading using the properties of the event and streams its content as a sequence of Output events with the end of record flag set in the last event.
Opened - Class in org.jgrapes.io.events
This event signals that an I/O resource has successfully been opened (usually in response to some …Open event).
Opened() - Constructor for class org.jgrapes.io.events.Opened
 
OpenTcpConnection - Class in org.jgrapes.io.events
 
OpenTcpConnection(InetSocketAddress) - Constructor for class org.jgrapes.io.events.OpenTcpConnection
Signals that a new TCP connection should be opened.
OpenTcpConnection(InetAddress, int) - Constructor for class org.jgrapes.io.events.OpenTcpConnection
Signals that a new TCP connection should be opened.
ops() - Method in class org.jgrapes.io.events.NioRegistration
 
Options(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Options
Create a new event.
Options(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Options
Instantiates a new request.
options() - Method in class org.jgrapes.io.events.FileOpened
 
options() - Method in class org.jgrapes.io.events.SaveInput
Returns the event’s open options
options() - Method in class org.jgrapes.io.events.SaveOutput
Returns the event’s options.
options() - Method in class org.jgrapes.io.events.StreamFile
Returns the event’s options.
org.jgrapes.core - package org.jgrapes.core
Defines the interfaces and classes that provide the core functionality of the JGrapes event driven component framework.
org.jgrapes.core.annotation - package org.jgrapes.core.annotation
Annotations used by the library.
org.jgrapes.core.events - package org.jgrapes.core.events
Core events.
org.jgrapes.core.internal - package org.jgrapes.core.internal
Classes implementing the public API of the library.
org.jgrapes.http - package org.jgrapes.http
Provides components for building a HTTP server based on the core and IO components.
org.jgrapes.http.annotation - package org.jgrapes.http.annotation
Adds a special annotation for methods that handle HTTP request events.
org.jgrapes.http.events - package org.jgrapes.http.events
Provides the events handled by the server components.
org.jgrapes.http.freemarker - package org.jgrapes.http.freemarker
Provides a base component for generating template based responses to HTTP requests.
org.jgrapes.io - package org.jgrapes.io
I/O related components built on top of the core package.
org.jgrapes.io.events - package org.jgrapes.io.events
Provides the events used by the I/O related components.
org.jgrapes.io.util - package org.jgrapes.io.util
Utility classes, mainly for adapted buffers to specific needs.
org.jgrapes.net - package org.jgrapes.net
Networking related I/O classes.
org.jgrapes.net.events - package org.jgrapes.net.events
 
org.jgrapes.util - package org.jgrapes.util
Utility components that are too small to deserve individual libraries/projects.
org.jgrapes.util.events - package org.jgrapes.util.events
 
Out(String, URL) - Constructor for class org.jgrapes.http.events.Request.Out
Instantiates a new request.
Output<T extends Buffer> - Class in org.jgrapes.io.events
This event signals that a new chunk of internally generated data is to be forwarded to some destination.
Output(Output<T>) - Constructor for class org.jgrapes.io.events.Output
Create a new event from an existing event.
overrideRestriction() - Method in interface org.jgrapes.core.EventPipeline
Overrides any restriction set by EventPipeline.restrictEventSource(EventPipeline) for the next EventPipeline.fire(Event, Channel...) invocation from the calling thread.

P

parent() - Method in class org.jgrapes.core.events.Attached
Return the parent component.
parent() - Method in class org.jgrapes.core.events.Detached
 
parent() - Method in class org.jgrapes.core.internal.ComponentVertex
 
parent() - Method in interface org.jgrapes.core.Manager
Returns the parent of the component managed by this manager.
path() - Method in class org.jgrapes.http.ResourcePattern
 
path() - Method in class org.jgrapes.io.events.FileOpened
 
path() - Method in class org.jgrapes.io.events.SaveInput
Returns the event’s path.
path() - Method in class org.jgrapes.io.events.SaveOutput
Return’s the event’s path.
path() - Method in class org.jgrapes.io.events.StreamFile
Returns the event’s path.
pathRemainder(URI) - Method in class org.jgrapes.http.ResourcePattern
If the URI matches, returns the path without prefix as specified by the matched pattern (see ResourcePattern.split(String, int)).
paths() - Method in class org.jgrapes.util.events.ConfigurationUpdate
Return all paths affected by this event.
PathSpliterator(String) - Constructor for class org.jgrapes.http.ResourcePattern.PathSpliterator
Creates a new spliterator for the given path, using “/” as path separator.
PathSpliterator(String, String) - Constructor for class org.jgrapes.http.ResourcePattern.PathSpliterator
Creates a new spliterator for the given path, using the characters from delimiters as seperators.
pattern() - Method in class org.jgrapes.http.ResourcePattern
 
PermitsPool - Class in org.jgrapes.io.util
A class that manages a set of permits and notifies listeners about changes of availability.
PermitsPool(int) - Constructor for class org.jgrapes.io.util.PermitsPool
Instantiates a new permits pool.
poll(K) - Method in class org.jgrapes.core.Components.PoolingIndex
Retrives and removes an item from the pool associated with the key.
PoolInfo(int, int, int, int, int) - Constructor for class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo
Instantiates a new pool info.
PoolInfos(Set<ManagedBufferPool<?, ?>>) - Constructor for class org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfos
Instantiates a new pool infos.
PoolingIndex() - Constructor for class org.jgrapes.core.Components.PoolingIndex
 
port() - Method in class org.jgrapes.http.ResourcePattern
 
position() - Method in class org.jgrapes.io.util.ManagedBuffer
 
position(int) - Method in class org.jgrapes.io.util.ManagedBuffer
 
Post(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Post
Create a new event.
Post(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Post
Instantiates a new request.
prefer(Locale) - Method in class org.jgrapes.http.LanguageSelector.Selection
Updates the current locale.
PreferencesStore - Class in org.jgrapes.util
This component provides a store for an application’s configuration backed by the Java Preferences.
PreferencesStore(Channel, Class<?>) - Constructor for class org.jgrapes.util.PreferencesStore
Creates a new component with its channel set to the given channel and a base path derived from the given class.
PreferencesStore(Channel, Class<?>, boolean) - Constructor for class org.jgrapes.util.PreferencesStore
Allows the creation of a “read-only” store.
prefix() - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Returns the prefix passed to the constructor.
PREFIX - Static variable in interface org.jgrapes.http.HttpRequestHandlerFactory
The key for the prefix property.
prefixPattern() - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Gets the prefix pattern.
printError(Error) - Method in class org.jgrapes.core.internal.ErrorPrinter
Prints the error.
priority(Annotation) - Method in class org.jgrapes.core.annotation.Handler.Evaluator
 
priority(Annotation) - Method in interface org.jgrapes.core.annotation.HandlerDefinition.Evaluator
Returns the priority defined by the annotation
priority(Annotation) - Method in class org.jgrapes.http.annotation.RequestHandler.Evaluator
 
processedBy() - Method in class org.jgrapes.core.Event
Return the event pipeline that currently processes the event (if any).
processedBy() - Method in class org.jgrapes.core.internal.EventBase
 
protocol() - Method in class org.jgrapes.http.events.ProtocolSwitchAccepted
The accepted protocol.
protocol() - Method in class org.jgrapes.http.ResourcePattern
 
ProtocolSwitchAccepted - Class in org.jgrapes.http.events
Indicates that a component has accepted a Request.In.Get with a header that requested an upgrade to another protocol.
ProtocolSwitchAccepted(Request.In, String) - Constructor for class org.jgrapes.http.events.ProtocolSwitchAccepted
Creates a new event.
Purge - Class in org.jgrapes.io.events
Fired by an initiator of connections that maintains a pool of such connections if no more connections are available.
Purge() - Constructor for class org.jgrapes.io.events.Purge
 
purgeableSince() - Method in interface org.jgrapes.net.TcpChannel
Returns since when the connection has become purgeable.
purgeableSince() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Gets the the time when the connection became purgeable.
PurgeTerminator - Class in org.jgrapes.io
A component that handles Purge events by unconditionally firing a Close events as response.
PurgeTerminator(Channel) - Constructor for class org.jgrapes.io.PurgeTerminator
 
put(Map<K, V>, K, V) - Static method in class org.jgrapes.core.Components
Puts the given key and value in the given Map and returns the map.
put(Map<? super TypedIdKey<V>, ? super V>, Serializable, V) - Static method in class org.jgrapes.core.TypedIdKey
Associates the given value’s type and the id with the given value using the given map.
Put(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Put
Create a new event.
Put(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Put
Instantiates a new request.

Q

query() - Method in class org.jgrapes.util.events.KeyValueStoreQuery
Returns the key used for the query.
queue - Variable in class org.jgrapes.core.internal.EventProcessor
 

R

readBuffers() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Gets the read buffers.
Ready - Class in org.jgrapes.net.events
Signals that a server has bound to a socket address and is ready to accept connections.
Ready(SocketAddress) - Constructor for class org.jgrapes.net.events.Ready
Creates a new event.
reason() - Method in class org.jgrapes.http.events.WebSocketClose
 
recollect(B) - Method in interface org.jgrapes.io.util.BufferCollector
Recollect the buffer.
recollect(W) - Method in class org.jgrapes.io.util.ManagedBufferPool
Re-adds the buffer to the pool.
reducePermits(int) - Method in class org.jgrapes.io.util.PermitsPool
Remove the given number of permits from the pool.
registerAsGenerator() - Method in class org.jgrapes.core.internal.ComponentVertex
 
registerAsGenerator() - Method in interface org.jgrapes.core.Manager
Register the managed component as a running generator.
Registration() - Constructor for class org.jgrapes.io.events.NioRegistration.Registration
 
Registration(SelectionKey) - Constructor for class org.jgrapes.io.NioDispatcher.Registration
Instantiates a new registration.
registrationComplete(NioRegistration) - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Invoked when registration has completed.
release() - Method in class org.jgrapes.io.util.PermitsPool
Release a previously obtained permit.
remaining() - Method in class org.jgrapes.io.events.IOEvent
 
remaining() - Method in class org.jgrapes.io.util.ManagedBuffer
 
remoteAddress() - Method in class org.jgrapes.net.events.Accepted
 
remoteAddress() - Method in class org.jgrapes.net.events.Connected
 
remoteAddress() - Method in interface org.jgrapes.net.TcpChannel
Returns the remote address.
remoteAddress() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
 
remove(K, V) - Method in class org.jgrapes.core.Components.PoolingIndex
Removes the given value from the pool associated with the given key.
remove(V) - Method in class org.jgrapes.core.Components.PoolingIndex
Removes the value from the first pool in which it is found.
remove() - Method in class org.jgrapes.core.internal.CompletionLockBase
Removes this completion lock from the event that it was created for.
remove(Object) - Method in class org.jgrapes.core.internal.GeneratorRegistry
Removes the generator.
removeAll(K) - Method in class org.jgrapes.core.Components.PoolingIndex
Removes all values associated with the key.
removeChannel(TcpConnectionManager.TcpChannelImpl) - Method in class org.jgrapes.net.TcpConnectionManager
Removes the channel from the set of registered channels.
removeChannel(TcpConnectionManager.TcpChannelImpl) - Method in class org.jgrapes.net.TcpServer
 
removeListener(AvailabilityListener) - Method in class org.jgrapes.io.util.PermitsPool
Removes the listener.
removePath(String) - Method in class org.jgrapes.util.events.ConfigurationUpdate
Remove a path from the configuration.
removeSegments(String, int) - Static method in class org.jgrapes.http.ResourcePattern
Removes the given number of segments (and their trailing slashes) from the beginning of the path.
removeSession(String) - Method in class org.jgrapes.http.InMemorySessionManager
 
removeSession(String) - Method in class org.jgrapes.http.SessionManager
Removed the given session.
replaceBackingBuffer(T) - Method in class org.jgrapes.io.util.ManagedBuffer
Replace the backing buffer.
request() - Method in class org.jgrapes.http.events.HttpConnected
Returns the request.
Request<R> - Class in org.jgrapes.http.events
The base class for all HTTP requests such as Request.In.Get, Request.In.Post etc.
Request(Channel...) - Constructor for class org.jgrapes.http.events.Request
 
Request.In - Class in org.jgrapes.http.events
The base class for all incoming HTTP requests.
Request.In.Completed - Class in org.jgrapes.http.events
The associated completion event.
Request.In.Connect - Class in org.jgrapes.http.events
Represents a HTTP CONNECT request.
Request.In.Delete - Class in org.jgrapes.http.events
The Class Delete.
Request.In.Get - Class in org.jgrapes.http.events
Represents a HTTP GET request.
Request.In.Head - Class in org.jgrapes.http.events
Represents a HTTP HEAD request.
Request.In.Options - Class in org.jgrapes.http.events
Represents a HTTP OPTIONS request.
Request.In.Post - Class in org.jgrapes.http.events
Represents a HTTP POST request.
Request.In.Put - Class in org.jgrapes.http.events
Represents a HTTP PUT request.
Request.In.Trace - Class in org.jgrapes.http.events
Represents a HTTP TRACE request.
Request.Out - Class in org.jgrapes.http.events
The base class for all outgoing HTTP requests.
Request.Out.Connect - Class in org.jgrapes.http.events
Represents a HTTP CONNECT request.
Request.Out.Delete - Class in org.jgrapes.http.events
Represents a HTTP DELETE request.
Request.Out.Get - Class in org.jgrapes.http.events
Represents a HTTP GET request.
Request.Out.Head - Class in org.jgrapes.http.events
Represents a HTTP HEAD request.
Request.Out.Options - Class in org.jgrapes.http.events
Represents a HTTP OPTIONS request.
Request.Out.Post - Class in org.jgrapes.http.events
Represents a HTTP POST request.
Request.Out.Put - Class in org.jgrapes.http.events
Represents a HTTP PUT request.
Request.Out.Trace - Class in org.jgrapes.http.events
Represents a HTTP TRACE request.
requestedServerNames() - Method in class org.jgrapes.net.events.Accepted
 
requestEvent() - Method in class org.jgrapes.http.events.ProtocolSwitchAccepted
Returns the original request.
RequestHandler - Annotation Type in org.jgrapes.http.annotation
This annotation marks a method as handler for events.
RequestHandler.Evaluator - Class in org.jgrapes.http.annotation
This class provides the RequestHandler.Evaluator for the RequestHandler annotation.
RequestHandler.Evaluator.Scope - Class in org.jgrapes.http.annotation
The scope implementation.
requestUri() - Method in class org.jgrapes.http.events.Request.In
Returns an absolute URI of the request.
requestUri() - Method in class org.jgrapes.http.events.Request.Out
Returns an absolute URI of the request.
reschedule(Instant) - Method in class org.jgrapes.core.Components.Timer
Reschedules the timer for the given instant.
reschedule(Duration) - Method in class org.jgrapes.core.Components.Timer
Reschedules the timer for the given duration after now.
reset() - Method in class org.jgrapes.io.util.ManagedBuffer
 
resourceBundle(Locale) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Provides a resource bundle for localization.
resourceInfo(URL) - Static method in class org.jgrapes.http.ResponseCreationSupport
Attempts to lookup the additional resource information for the given URL.
ResourceInfo(Boolean, Instant) - Constructor for class org.jgrapes.http.ResponseCreationSupport.ResourceInfo
 
resourceName() - Method in class org.jgrapes.http.events.ProtocolSwitchAccepted
Returns the resource for which the socket was opened.
resourceName() - Method in class org.jgrapes.http.events.Upgraded
Return the resource requested in the upgrade.
ResourcePattern - Class in org.jgrapes.http
A resource pattern can be used to filter URIs.
ResourcePattern(String) - Constructor for class org.jgrapes.http.ResourcePattern
Creates a new resource pattern.
ResourcePattern.PathSpliterator - Class in org.jgrapes.http
Returns the segments of the path.
respond(T) - Method in interface org.jgrapes.io.IOSubchannel
Fires the given event on this subchannel using the subchannel’s response pipeline.
Response - Class in org.jgrapes.http.events
Represents the response (header).
Response(MessageHeader) - Constructor for class org.jgrapes.http.events.Response
Instantiates a new response.
response() - Method in class org.jgrapes.http.events.Response
 
ResponseCreationSupport - Class in org.jgrapes.http
Provides methods that support the creation of a Response events.
ResponseCreationSupport() - Constructor for class org.jgrapes.http.ResponseCreationSupport
 
ResponseCreationSupport.DefaultMaxAgeCalculator - Class in org.jgrapes.http
DefaultMaxAgeCalculator provides an implementation that tries to guess a good max age value by looking at the path of the requested resource.
ResponseCreationSupport.MaxAgeCalculator - Interface in org.jgrapes.http
Describes a calculator for the max-age property.
ResponseCreationSupport.ResourceInfo - Class in org.jgrapes.http
Combines the known information about a resource.
responsePipeline() - Method in class org.jgrapes.io.IOSubchannel.DefaultIOSubchannel
 
responsePipeline() - Method in interface org.jgrapes.io.IOSubchannel
Gets the EventPipeline that can be used for events going back to the initiator of this connection.
restrictEventSource(EventPipeline) - Method in interface org.jgrapes.core.EventPipeline
Allow only the given source pipeline to fire events on this pipeline.
results() - Method in class org.jgrapes.core.Event
Waits for the event to be completed (see Event.isDone()) and returns the list of results (which may be empty if the event’s result type is Void).
results(long, TimeUnit) - Method in class org.jgrapes.core.Event
Causes the invoking thread to wait until the processing of the event has been completed (see Event.isDone()) or given timeout has expired and returns the list of results (which may be empty if the event’s result type is Void).
rewind() - Method in class org.jgrapes.io.util.ManagedBuffer
 
root() - Method in class org.jgrapes.core.internal.ComponentVertex
 
root() - Method in interface org.jgrapes.core.Manager
Returns the root of the tree the component managed by this manager belongs to.
run() - Method in class org.jgrapes.core.internal.EventProcessor
 
run() - Method in class org.jgrapes.io.InputStreamMonitor
 
run() - Method in class org.jgrapes.io.NioDispatcher
Invoked once by the thread associated with the dispatcher.
run() - Method in class org.jgrapes.io.util.InputStreamPipeline
 

S

savedBacking - Variable in class org.jgrapes.io.util.ManagedBuffer
 
SaveInput - Class in org.jgrapes.io.events
Causes the FileStorage component to write the data from all Input events on the channel that this event is fired on to a file until an event with the end of record flag set is sent on the channel.
SaveInput(Path, OpenOption...) - Constructor for class org.jgrapes.io.events.SaveInput
Creates a new instance.
SaveOutput - Class in org.jgrapes.io.events
Causes the FileStorage component to write the data from all Output events on the channel that this event is fired on to a file until an event with the end of record flag set is sent on the channel.
SaveOutput(Path, OpenOption...) - Constructor for class org.jgrapes.io.events.SaveOutput
Creates a new instance.
schedule(Components.TimeoutHandler, Instant) - Static method in class org.jgrapes.core.Components
Schedules the given timeout handler for the given instance.
schedule(Components.TimeoutHandler, Duration) - Static method in class org.jgrapes.core.Components
Schedules the given timeout handler for the given offset from now.
scheduledFor() - Method in class org.jgrapes.core.Components.Timer
Returns the instant that this handler is scheduled for.
scope(ComponentType, Method, HandlerDefinition.ChannelReplacements) - Method in class org.jgrapes.core.annotation.Handler.Evaluator
 
scope(ComponentType, Method, HandlerDefinition.ChannelReplacements) - Method in interface org.jgrapes.core.annotation.HandlerDefinition.Evaluator
Returns the information about the events and channels handled by the handler that annotates the given method of the given comonent as a HandlerScope object.
scope(ComponentType, Method, HandlerDefinition.ChannelReplacements) - Method in class org.jgrapes.http.annotation.RequestHandler.Evaluator
 
Scope(ComponentType, Method, RequestHandler, Map<Class<? extends Channel>, Object>, String) - Constructor for class org.jgrapes.http.annotation.RequestHandler.Evaluator.Scope
Instantiates a new scope.
SELF - Static variable in interface org.jgrapes.core.Channel
A special channel object that can be passed as argument to the constructor of Component.Component(Channel).
Self - Interface in org.jgrapes.core
This interface type can be used to specify the object itself as channel in handler annotations.
sendInputEvents() - Method in class org.jgrapes.io.util.ByteBufferOutputStream
Causes the data to be fired as Input events rather than the usual Output events.
sendInputEvents() - Method in class org.jgrapes.io.util.CharBufferWriter
Causes the data to be fired as Input events rather than the usual Output events.
sendProcessedTemplate(Request.In, IOSubchannel, Template) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Render a response using the given template.
sendProcessedTemplate(Request.In, IOSubchannel, String) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Render a response using the template obtained from the config with Configuration.getTemplate(String) and the given path.
sendResponse(HttpRequest, IOSubchannel, int, String) - Static method in class org.jgrapes.http.ResponseCreationSupport
Send a response to the given request with the given status code and reason phrase, including a text/plain body with the status code and reason phrase.
sendResponse(HttpRequest, IOSubchannel, HttpConstants.HttpStatus) - Static method in class org.jgrapes.http.ResponseCreationSupport
Shorthand for invoking ResponseCreationSupport.sendResponse(HttpRequest, IOSubchannel, int, String) with a predefined HTTP status.
sendStaticContent(HttpRequest, IOSubchannel, Function<String, URL>, ResponseCreationSupport.MaxAgeCalculator) - Static method in class org.jgrapes.http.ResponseCreationSupport
Creates and sends a response with static content.
sendStaticContent(Request.In, IOSubchannel, Function<String, URL>, ResponseCreationSupport.MaxAgeCalculator) - Static method in class org.jgrapes.http.ResponseCreationSupport
server() - Method in class org.jgrapes.net.TcpServer.TcpServerInfo
Server.
serverAddress() - Method in class org.jgrapes.net.TcpServer
Returns the server address.
session() - Method in class org.jgrapes.http.events.DiscardSession
Returns the session to be discarded.
Session - Interface in org.jgrapes.http
Represents a browser session.
sessionCount() - Method in class org.jgrapes.http.InMemorySessionManager
 
sessionCount() - Method in class org.jgrapes.http.SessionManager
Return the number of established sessions.
SessionManager - Class in org.jgrapes.http
A base class for session managers.
SessionManager() - Constructor for class org.jgrapes.http.SessionManager
Creates a new session manager with its channel set to itself and the path set to “/”.
SessionManager(String) - Constructor for class org.jgrapes.http.SessionManager
Creates a new session manager with its channel set to itself and the path set to the given path.
SessionManager(Channel) - Constructor for class org.jgrapes.http.SessionManager
Creates a new session manager with its channel set to the given channel and the path to “/”.
SessionManager(Channel, String) - Constructor for class org.jgrapes.http.SessionManager
Creates a new session manager with the given channel and path.
SessionManager(Channel, String, int, String) - Constructor for class org.jgrapes.http.SessionManager
Creates a new session manager using the given channel and path.
SessionManager.SessionManagerInfo - Class in org.jgrapes.http
The session manager information.
SessionManager.SessionManagerMXBean - Interface in org.jgrapes.http
An MBean interface for getting information about the established sessions.
SessionManager.SessionManagerSummaryMXBean - Interface in org.jgrapes.http
An MBean interface for getting information about all session managers.
SessionManagerInfo(SessionManager) - Constructor for class org.jgrapes.http.SessionManager.SessionManagerInfo
Instantiates a new session manager info.
setAbsoluteTimeout(int) - Method in class org.jgrapes.http.SessionManager
Sets the absolute timeout for a session in seconds.
setAcceptNoSni(boolean) - Method in class org.jgrapes.http.HttpServer
Determines if request from secure (TLS) connections without SNI are accepted.
setAcquireWarningLimit(long) - Method in interface org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean
Set the acquire warning limit.
setApplicationBufferSize(int) - Method in class org.jgrapes.http.HttpConnector
Sets the size of the buffers used for Input events on the application channel.
setApplicationBufferSize(int) - Method in class org.jgrapes.http.HttpServer
Sets the size of the buffers used for Output events on the application channel.
setAssociated(Object, Object) - Method in interface org.jgrapes.core.Associator
Establishes a “named” association to an associated object.
setAssociated(Object, Object) - Method in class org.jgrapes.core.Event
 
setAssociated(Object, Object) - Method in class org.jgrapes.core.Subchannel.DefaultSubchannel
Establishes a “named” association to an associated object.
setBacklog(int) - Method in class org.jgrapes.net.TcpServer
Sets the backlog size.
setBufferSize(int) - Method in class org.jgrapes.io.InputStreamMonitor
Sets the buffer size.
setBufferSize(int) - Method in class org.jgrapes.net.TcpConnectionManager
Sets the buffer size for the send an receive buffers.
setBufferSize(int) - Method in class org.jgrapes.net.TcpConnector
Sets the buffer size for the send an receive buffers.
setByteBufferPool(ManagedBufferPool<ManagedBuffer<ByteBuffer>, ByteBuffer>) - Method in class org.jgrapes.io.IOSubchannel.DefaultIOSubchannel
 
setChannels(Channel...) - Method in class org.jgrapes.core.Event
Sets the channels that the event is fired on if no channels are specified explicitly when firing the event (see Manager.fire(Event, Channel...)).
setCharBufferPool(ManagedBufferPool<ManagedBuffer<CharBuffer>, CharBuffer>) - Method in class org.jgrapes.io.IOSubchannel.DefaultIOSubchannel
 
setConnectedCallback(BiConsumer<Request.Out, TcpChannel>) - Method in class org.jgrapes.http.events.Request.Out
Sets a “connected callback”.
setConnectionLimiter(PermitsPool) - Method in class org.jgrapes.net.TcpServer
Sets a permit “pool”.
setCookieName(String) - Method in class org.jgrapes.http.LanguageSelector
Sets the name of the cookie used to store the locale.
setDefaultDrainDelay(long) - Method in interface org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean
Set the default drain delay.
setDefaultDrainDelay(long) - Static method in class org.jgrapes.io.util.ManagedBufferPool
Sets the default delay after which buffers are removed from the pool.
setDefaultExecutorService(ExecutorService) - Static method in class org.jgrapes.core.Components
Set the default executor service for the framework.
setDrainDelay(long) - Method in class org.jgrapes.io.util.ManagedBufferPool
Sets the delay after which buffers are removed from the pool.
setExecutorService(ExecutorService) - Method in class org.jgrapes.net.TcpConnectionManager
Sets an executor service to be used by the event pipelines that process the data from the network.
setIdleTimeout(int) - Method in class org.jgrapes.http.SessionManager
Sets the idle timeout for a session in seconds.
setIdName(String) - Method in class org.jgrapes.http.SessionManager
 
setMatchLevels(int) - Method in class org.jgrapes.http.HttpServer
Sets the number of elements from the request path used in the match value of the generated events (see Event.defaultCriterion()), defaults to 1.
setMaxAge(HttpResponse, int) - Static method in class org.jgrapes.http.ResponseCreationSupport
Sets the cache control header in the given response.
setMaxAgeCalculator(ResponseCreationSupport.MaxAgeCalculator) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Sets the ResponseCreationSupport.MaxAgeCalculator for generating the Cache-Control (max-age) header of the response.
setMaxAgeCalculator(ResponseCreationSupport.MaxAgeCalculator) - Method in class org.jgrapes.http.StaticContentDispatcher
Sets the ResponseCreationSupport.MaxAgeCalculator for generating the Cache-Control (max-age) header of the response.
setMaxSessions(int) - Method in class org.jgrapes.http.SessionManager
Set the maximum number of sessions.
setMinimalPurgeableTime(long) - Method in class org.jgrapes.net.TcpServer
Sets a minimal time that a connection must be purgeable (idle) before it may be purged.
setName(String) - Method in class org.jgrapes.core.Component
 
setName(String) - Method in class org.jgrapes.core.internal.ComponentVertex
 
setName(String) - Method in interface org.jgrapes.core.Manager
Sets the (optional) name of the component.
setName(String) - Method in class org.jgrapes.io.util.ManagedBufferPool
Sets a name for this pool (to be used in status reports).
setRequestUri(URI) - Method in class org.jgrapes.http.events.Request.In
Sets the request URI.
setRequiresResult(boolean) - Method in class org.jgrapes.core.Event
 
setRequiresResult(boolean) - Method in class org.jgrapes.core.internal.EventBase
setResult(T) - Method in class org.jgrapes.core.Event
Sets the result of handling this event.
setServerAddress(InetSocketAddress) - Method in class org.jgrapes.net.TcpServer
Sets the address to bind to.
setTimerExecutorService(ExecutorService) - Static method in class org.jgrapes.core.Components
Sets the executor service used for executing timers.
simpleClassName(Class<?>) - Static method in class org.jgrapes.core.Components
Returns the simple name of a class.
simpleObjectName(Object) - Static method in class org.jgrapes.core.Components
Returns the simple name of the object’s class together with an id (see Components.objectId(Object)).
split(String, int) - Static method in class org.jgrapes.http.ResourcePattern
Splits the given path in a prefix with the given number of segments and the rest.
splitPath(URI) - Method in class org.jgrapes.http.ResourcePattern
If the URI matches, returns the path split according to the matched pattern (see ResourcePattern.split(String, int)).
SslCodec - Class in org.jgrapes.net
A component that receives and send byte buffers on an encrypted channel and sends and receives the corresponding decrypted data on a plain channel.
SslCodec(Channel, Channel, SSLContext) - Constructor for class org.jgrapes.net.SslCodec
Creates a new codec that uses the given SSLContext.
SslCodec(Channel, Channel, boolean) - Constructor for class org.jgrapes.net.SslCodec
Creates a new codec to be used as client.
start(ComponentType) - Static method in class org.jgrapes.core.Components
Fires a Start event with an associated Started completion event on the broadcast channel of the given application and wait for the completion of the Start event.
Start - Class in org.jgrapes.core.events
An event that signals the start of the application.
Start() - Constructor for class org.jgrapes.core.events.Start
Create a new start event and set its completion event to Started.
Started - Class in org.jgrapes.core.events
The event that signals the completion of the Start event.
Started(Start, Channel...) - Constructor for class org.jgrapes.core.events.Started
Instantiates a new Started event.
StaticContentDispatcher - Class in org.jgrapes.http
A dispatcher for requests for static content, usually files.
StaticContentDispatcher(Channel, String, URI) - Constructor for class org.jgrapes.http.StaticContentDispatcher
Creates new dispatcher that tries to fulfill requests matching the given resource pattern from the given content root.
StaticContentDispatcher(String, URI) - Constructor for class org.jgrapes.http.StaticContentDispatcher
Creates a new component base with its channel set to itself.
statusCode() - Method in class org.jgrapes.http.events.WebSocketClose
 
stop() - Method in class org.jgrapes.core.Event
Can be called during the execution of an event handler to indicate that the event should not be processed further.
Stop - Class in org.jgrapes.core.events
An event that causes an application to shut down.
Stop() - Constructor for class org.jgrapes.core.events.Stop
Create a new stop event with the event’s channels set to Channel.BROADCAST.
storeAs(String, String...) - Method in class org.jgrapes.util.events.KeyValueStoreUpdate
Adds a new update action to the event that stores the given value on the path formed by the path segments.
stream() - Method in interface org.jgrapes.core.Manager
Returns the components visited when traversing the tree that starts with this component.
stream(String) - Static method in class org.jgrapes.http.ResourcePattern.PathSpliterator
Creates a new stream for the given path, using “/” as path separator.
stream(String, String) - Static method in class org.jgrapes.http.ResourcePattern.PathSpliterator
Creates a new stream for the given path, using the characters from delimiters as seperators.
StreamFile - Class in org.jgrapes.io.events
Causes the content of a file to be streamed as a sequence of Output events (terminated by an event with the end of record flag set) on the channel that this event is fired on.
StreamFile(Path, OpenOption...) - Constructor for class org.jgrapes.io.events.StreamFile
Creates a new instance.
Subchannel - Interface in org.jgrapes.core
Represents a subchannel.
Subchannel.DefaultSubchannel - Class in org.jgrapes.core
A simple implementation of Subchannel.
submit(String, Callable<V>) - Method in interface org.jgrapes.core.EventPipeline
Adds an action to be executed to the event pipeline.
submit(Callable<V>) - Method in interface org.jgrapes.core.EventPipeline
Like EventPipeline.submit(String, Callable) but without specifying a name for the event debug log.
submit(String, Runnable) - Method in interface org.jgrapes.core.EventPipeline
Adds an action to be executed to the event pipeline.
submit(Runnable) - Method in interface org.jgrapes.core.EventPipeline
Like EventPipeline.submit(String, Callable) but without specifiying a name for the event debug log.
suppressClose() - Method in class org.jgrapes.io.util.ByteBufferOutputStream
Suppresses sending of a close event when the stream is closed.
suppressClose() - Method in class org.jgrapes.io.util.CharBufferWriter
Suppresses sending of a close event when the stream is closed.
suppressClose() - Method in class org.jgrapes.io.util.InputStreamPipeline
Suppresses the sending of a close event when the stream is closed.
suppressEndOfRecord() - Method in class org.jgrapes.io.util.ByteBufferOutputStream
Suppresses setting the end of record flag when the stream is flushed or closed.
suppressEndOfRecord() - Method in class org.jgrapes.io.util.CharBufferWriter
Suppresses setting the end of record flag when the stream is flushed or closed.

T

TcpChannel - Interface in org.jgrapes.net
A special sub channel used for TCP connections.
TcpChannelImpl(SocketChannel) - Constructor for class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
 
TcpConnectionManager - Class in org.jgrapes.net
Provides a base class for the TcpServer and the TcpConnector.
TcpConnectionManager(Channel) - Constructor for class org.jgrapes.net.TcpConnectionManager
Creates a new server using the given channel.
TcpConnectionManager.TcpChannelImpl - Class in org.jgrapes.net
The internal representation of a connection.
TcpConnector - Class in org.jgrapes.net
A component that reads from or write to a TCP connection.
TcpConnector(Channel) - Constructor for class org.jgrapes.net.TcpConnector
Create a new instance using the given channel.
TcpConnector() - Constructor for class org.jgrapes.net.TcpConnector
Creates a new connector, using itself as component channel.
TcpServer - Class in org.jgrapes.net
Provides a TCP server.
TcpServer() - Constructor for class org.jgrapes.net.TcpServer
Creates a new server, using itself as component channel.
TcpServer(Channel) - Constructor for class org.jgrapes.net.TcpServer
Creates a new server using the given channel.
TcpServer.TcpServerInfo - Class in org.jgrapes.net
The Class TcpServerInfo.
TcpServer.TcpServerMXBean - Interface in org.jgrapes.net
The Interface of the TcpServer MXBean.
TcpServer.TcpServerMXBean.ChannelInfo - Class in org.jgrapes.net
The Class ChannelInfo.
TcpServer.TcpServerSummaryMXBean - Interface in org.jgrapes.net
An MBean interface for getting information about the TCP servers and established connections.
TcpServerInfo(TcpServer) - Constructor for class org.jgrapes.net.TcpServer.TcpServerInfo
Instantiates a new tcp server info.
TEMPLATE_PATTERN - Static variable in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
 
throwable() - Method in class org.jgrapes.core.events.Error
Returns the throwable that caused the problem.
tieTo(Event<T>) - Method in class org.jgrapes.core.Event
Tie the result of this event to the result of the other event.
timeout(Components.Timer) - Method in interface org.jgrapes.core.Components.TimeoutHandler
Invoked when the timeout occurs.
timeoutHandler() - Method in class org.jgrapes.core.Components.Timer
Returns the timeout handler of this timer.
timerExecutorService() - Static method in class org.jgrapes.core.Components
Returns the executor service used for executing timers.
toString(Channel) - Static method in interface org.jgrapes.core.Channel
Returns a textual representation of a channel.
toString(Channel[]) - Static method in interface org.jgrapes.core.Channel
Returns a textual representation of an array of channels.
toString() - Method in class org.jgrapes.core.ClassChannel
 
toString() - Method in class org.jgrapes.core.CompletionEvent
 
toString() - Method in class org.jgrapes.core.Event
 
toString() - Method in class org.jgrapes.core.events.Attached
 
toString() - Method in class org.jgrapes.core.events.Detached
 
toString() - Method in class org.jgrapes.core.events.Error
 
toString() - Method in class org.jgrapes.core.internal.ActionEvent
 
toString() - Method in class org.jgrapes.core.internal.BufferingEventPipeline
 
toString() - Method in class org.jgrapes.core.internal.ComponentVertex
If a name has been set for this component (see Manager.setName(String)), return the name, else return the object name provided by Components.objectName(Object), using ComponentVertex.component() as argument.
toString() - Method in class org.jgrapes.core.internal.EventChannelsTuple
 
toString() - Method in class org.jgrapes.core.internal.EventProcessor
 
toString() - Method in class org.jgrapes.core.NamedChannel
 
toString() - Method in class org.jgrapes.core.NamedEvent
 
toString() - Method in class org.jgrapes.core.Subchannel.DefaultSubchannel
 
toString(Subchannel) - Static method in interface org.jgrapes.core.Subchannel
Returns a string representation of the channel.
toString() - Method in class org.jgrapes.core.TypedIdKey
 
toString() - Method in class org.jgrapes.http.annotation.RequestHandler.Evaluator.Scope
 
toString() - Method in class org.jgrapes.http.events.Request.In
 
toString() - Method in class org.jgrapes.http.events.Request.Out
 
toString() - Method in class org.jgrapes.http.InMemorySession
 
toString() - Method in class org.jgrapes.http.LanguageSelector.Selection
 
toString() - Method in class org.jgrapes.http.ResourcePattern
 
toString() - Method in class org.jgrapes.io.events.IOEvent
 
toString() - Method in class org.jgrapes.io.FileStorage
 
toString() - Method in class org.jgrapes.io.util.LinkedIOSubchannel
 
toString() - Method in class org.jgrapes.io.util.ManagedBuffer
 
toString() - Method in class org.jgrapes.io.util.ManagedBufferPool
 
toString() - Method in class org.jgrapes.net.events.Accepted
 
toString() - Method in class org.jgrapes.net.events.Connected
 
toString() - Method in class org.jgrapes.net.events.Ready
 
toString() - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
 
toString() - Method in class org.jgrapes.net.TcpConnectionManager
 
Trace(HttpRequest, boolean, int, Channel...) - Constructor for class org.jgrapes.http.events.Request.In.Trace
Create a new event.
Trace(URL) - Constructor for class org.jgrapes.http.events.Request.Out.Trace
Instantiates a new request.
transientData() - Method in class org.jgrapes.http.InMemorySession
 
transientData() - Method in interface org.jgrapes.http.Session
Return the storage area for transient data.
tree() - Method in class org.jgrapes.core.internal.EventProcessor
Gets the component tree.
tryAcquire() - Method in class org.jgrapes.io.util.PermitsPool
Try to acquire a permit.
tryAdvance(Consumer<? super String>) - Method in class org.jgrapes.http.ResourcePattern.PathSpliterator
 
TypedIdKey<V> - Class in org.jgrapes.core
Combines a type and an id value to a key for an Associator or Map.

U

unlink(Manager) - Method in class org.jgrapes.io.util.LinkedIOSubchannel
Removes the association between the upstream channel and this channel.
unlockBuffer() - Method in class org.jgrapes.io.util.ManagedBuffer
Decreases the buffer’s lock count.
unregisterAsGenerator() - Method in class org.jgrapes.core.internal.ComponentVertex
 
unregisterAsGenerator() - Method in interface org.jgrapes.core.Manager
Unregister the managed component as a running generator.
update(String, String) - Method in class org.jgrapes.util.events.KeyValueStoreUpdate
Adds a new update action to the event.
Update(String, String) - Constructor for class org.jgrapes.util.events.KeyValueStoreUpdate.Update
Instantiates a new update.
updateInterested(int) - Method in class org.jgrapes.io.events.NioRegistration.Registration
Update the mask for interesting operations.
updateInterested(int) - Method in class org.jgrapes.io.NioDispatcher.Registration
 
updateLastUsedAt() - Method in class org.jgrapes.http.InMemorySession
Updates the last used time stamp.
updateLastUsedAt() - Method in interface org.jgrapes.http.Session
Updates the last used time stamp.
updatePrefixPattern(ResourcePattern) - Method in class org.jgrapes.http.freemarker.FreeMarkerRequestHandler
Updates the prefix pattern.
Upgraded - Class in org.jgrapes.http.events
Fired when a protocol upgrade was successful.
Upgraded(URI, String, Channel...) - Constructor for class org.jgrapes.http.events.Upgraded
 
upstreamChannel() - Method in class org.jgrapes.io.util.LinkedIOSubchannel
Returns the upstream channel.
upstreamToString(Channel) - Static method in class org.jgrapes.io.util.LinkedIOSubchannel
The LinkedIOSubchannel.toString() method of LinkedIOSubchannels shows the channel together with the upstream channel that it is linked to.
uriFromPath(String) - Static method in class org.jgrapes.http.ResponseCreationSupport
Create a URI from a path.
uriFromUrl(URL) - Static method in class org.jgrapes.http.ResponseCreationSupport
Create a URI from a URL.

V

value(String, String) - Method in class org.jgrapes.util.events.ConfigurationUpdate
Return the value with the given path and key if it exists.
value() - Method in class org.jgrapes.util.events.KeyValueStoreUpdate.Update
Value.
values(String) - Method in class org.jgrapes.util.events.ConfigurationUpdate
Return the values for a given path if they exists.
VERSION_PATTERN - Static variable in class org.jgrapes.http.ResponseCreationSupport.DefaultMaxAgeCalculator
 

W

WebSocketClose - Class in org.jgrapes.http.events
An event that provides the close information when a WebSockt is closed.
WebSocketClose(WsCloseFrame, Channel...) - Constructor for class org.jgrapes.http.events.WebSocketClose
 
wrap(B) - Static method in class org.jgrapes.io.util.ManagedBuffer
Convenience method for creating a ManagedBuffer with a BufferCollector.NOOP_COLLECTOR from a NIO buffer.
wrapped() - Method in interface org.jgrapes.core.internal.InternalEventPipelineWrapper
Return the internal event pipeline.
write(int) - Method in class org.jgrapes.io.util.ByteBufferOutputStream
 
write(byte[], int, int) - Method in class org.jgrapes.io.util.ByteBufferOutputStream
 
write(char[], int, int) - Method in class org.jgrapes.io.util.CharBufferWriter
 
write(Output<ByteBuffer>) - Method in class org.jgrapes.net.TcpConnectionManager.TcpChannelImpl
Write the data on this channel.
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links