Package io.mangoo.routing.routes
Class WebSocketRoute
java.lang.Object
io.mangoo.routing.routes.WebSocketRoute
- All Implemented Interfaces:
MangooRoute
- Author:
- svenkubiak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getUrl()booleanonController(Class<?> clazz) Sets the controller class for this WebSocket routeSets the URL for this routevoidSets authentication to true, default is false
-
Constructor Details
-
WebSocketRoute
public WebSocketRoute()
-
-
Method Details
-
to
Sets the URL for this route- Parameters:
url- The URL for this WebSocket route- Returns:
- WebSocketRoute instance
-
onController
Sets the controller class for this WebSocket route- Parameters:
clazz- The controller class- Returns:
- WebSocketRoute instance
-
withAuthentication
public void withAuthentication()Sets authentication to true, default is false -
getUrl
- Specified by:
getUrlin interfaceMangooRoute- Returns:
- The configured URL for this route
-
hasAuthentication
public boolean hasAuthentication() -
getControllerClass
-