Uses of Class
com.soklet.core.ResourcePath
Packages that use ResourcePath
Package
Description
Core Soklet contracts and functionality.
Default implementations of Soklet contracts.
-
Uses of ResourcePath in com.soklet.core
Methods in com.soklet.core that return ResourcePathModifier and TypeMethodDescriptionRequest.getResourcePath()
Convenience method to acquire aResourcePath
representation ofRequest.getPath()
.ServerSentEventBroadcaster.getResourcePath()
The runtime Resource Path with which this broadcaster is associated.static ResourcePath
Vends an instance that represents a runtime representation of a resource path, for example/users/123
.Methods in com.soklet.core with parameters of type ResourcePathModifier and TypeMethodDescriptionOptional
<? extends ServerSentEventBroadcaster> ServerSentEventServer.acquireBroadcaster
(ResourcePath resourcePath) Given aResourcePath
that corresponds to a Resource Method annotated withServerSentEventSource
, acquire aServerSentEventBroadcaster
which is capable of "pushing" messages to all connected Server-Sent Event clients.Simulator.acquireServerSentEventBroadcaster
(ResourcePath resourcePath) Acquires a Server-Sent Event broadcaster for the givenResourcePath
.ResourcePathDeclaration.extractPlaceholders
(ResourcePath resourcePath) What is the mapping between this resource path declaration's placeholder names to the given resource path's placeholder values?ResourcePathDeclaration.matches
(ResourcePath resourcePath) Does this resource path declaration match the given resource path (taking placeholders into account, if present)?void
Simulator.registerServerSentEventConsumer
(ResourcePath resourcePath, Consumer<ServerSentEvent> serverSentEventConsumer) Registers aServerSentEvent
"consumer" for the givenResourcePath
- similar to how a real client would listen for Server-Sent Events. -
Uses of ResourcePath in com.soklet.core.impl
Methods in com.soklet.core.impl with parameters of type ResourcePathModifier and TypeMethodDescriptionOptional
<? extends ServerSentEventBroadcaster> DefaultServerSentEventServer.acquireBroadcaster
(ResourcePath resourcePath)