Package io.mangoo.routing.routes
Class ServerSentEventRoute
- java.lang.Object
-
- io.mangoo.routing.routes.ServerSentEventRoute
-
- All Implemented Interfaces:
MangooRoute
public class ServerSentEventRoute extends Object implements MangooRoute
- Author:
- svenkubiak
-
-
Constructor Summary
Constructors Constructor Description ServerSentEventRoute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUrl()booleanhasAuthentication()ServerSentEventRouteto(String url)Sets the URL for this routevoidwithAuthentication()Sets authentication to true, default is false
-
-
-
Method Detail
-
to
public ServerSentEventRoute to(String url)
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
public String getUrl()
- Specified by:
getUrlin interfaceMangooRoute- Returns:
- The configured URL for this route
-
hasAuthentication
public boolean hasAuthentication()
-
-