Package io.mangoo.routing.routes
Class ServerSentEventRoute
java.lang.Object
io.mangoo.routing.routes.ServerSentEventRoute
- All Implemented Interfaces:
MangooRoute
- Author:
- svenkubiak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()booleanSets the URL for this routevoidSets authentication to true, default is false
-
Constructor Details
-
ServerSentEventRoute
public ServerSentEventRoute()
-
-
Method Details
-
to
Sets the URL for this route- Parameters:
url- The URL for this route- Returns:
- ServerSentEventRoute 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()
-