Package dev.hilla
Class EndpointUtil
- java.lang.Object
-
- dev.hilla.EndpointUtil
-
-
Constructor Summary
Constructors Constructor Description EndpointUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)Checks if the given request goes to an anonymous (public) endpoint.booleanisEndpointRequest(javax.servlet.http.HttpServletRequest request)Checks if the request is for an endpoint.
-
-
-
Method Detail
-
isEndpointRequest
public boolean isEndpointRequest(javax.servlet.http.HttpServletRequest request)
Checks if the request is for an endpoint.Note even if this method returns
true, there is no guarantee that an endpoint method will actually be called, e.g. access might be denied.- Parameters:
request- the HTTP request- Returns:
trueif the request is for an endpoint,falseotherwise
-
isAnonymousEndpoint
public boolean isAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)
Checks if the given request goes to an anonymous (public) endpoint.- Parameters:
request- the HTTP request to check- Returns:
trueif the request goes to an anonymous endpoint,falseotherwise
-
-