Interface MappedWebSocketCreator
-
- All Known Implementing Classes:
NativeWebSocketConfiguration
,WebSocketUpgradeFilter
,WebSocketUpgradeHandlerWrapper
@Deprecated(since="2021-05-27") public interface MappedWebSocketCreator
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Common interface for MappedWebSocketCreator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addMapping(java.lang.String spec, WebSocketCreator creator)
Deprecated.Add a mapping, of a pathspec to a WebSocketCreator.void
addMapping(PathSpec spec, WebSocketCreator creator)
Deprecated.Add a mapping.void
addMapping(PathSpec spec, WebSocketCreator creator)
Deprecated.WebSocketCreator
getMapping(java.lang.String spec)
Deprecated./** Returns the creator for the given path spec.boolean
removeMapping(java.lang.String spec)
Deprecated.Removes the mapping based on the given path spec.
-
-
-
Method Detail
-
addMapping
void addMapping(java.lang.String spec, WebSocketCreator creator)
Deprecated.Add a mapping, of a pathspec to a WebSocketCreator.Recognized Path Spec syntaxes
/path/to
or/
or*.ext
orservlet|{spec}
- Servlet Syntax
^{spec}
orregex|{spec}
- Regex Syntax
uri-template|{spec}
- URI Template (see JSR356 and RFC6570 level 1)
- Parameters:
spec
- the path spec to use.creator
- the websocket creator for this specific mapping
-
addMapping
@Deprecated void addMapping(PathSpec spec, WebSocketCreator creator)
Deprecated.useaddMapping(org.eclipse.jetty.http.pathmap.PathSpec, WebSocketCreator)
instead. (support classes moved to generic jetty-http project)Add a mapping.- Parameters:
spec
- the path spec to usecreator
- the creator for the mapping
-
addMapping
void addMapping(PathSpec spec, WebSocketCreator creator)
Deprecated.Add a mapping.- Parameters:
spec
- the path spec to usecreator
- the creator for the mapping- Since:
- 9.2.20
-
getMapping
WebSocketCreator getMapping(java.lang.String spec)
Deprecated./** Returns the creator for the given path spec.- Parameters:
spec
- the spec to test for (using the same spec syntax as seen inaddMapping(String, WebSocketCreator)
)- Returns:
- the websocket creator if path spec exists, or null
-
removeMapping
boolean removeMapping(java.lang.String spec)
Deprecated.Removes the mapping based on the given path spec.- Parameters:
spec
- the path spec to remove (using the same spec syntax as seen inaddMapping(String, WebSocketCreator)
)- Returns:
- true if underlying mapping were altered, false otherwise
-
-