Class FaviconHandler
java.lang.Object
com.vaadin.flow.server.communication.FaviconHandler
- All Implemented Interfaces:
SessionlessRequestHandler,Serializable
Handles the favicon request explicitly and return 404 for it.
It allows to not produce the same content for the favicon as for any other resource if servlet mapping is "/*". The favicon request does not need a session, so it is answered without looking one up or creating one.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleRequest(VaadinRequest request, VaadinResponse response) Called for every request before the service looks up its session.
-
Constructor Details
-
FaviconHandler
public FaviconHandler()
-
-
Method Details
-
handleRequest
Description copied from interface:SessionlessRequestHandlerCalled for every request before the service looks up its session. If a response is written, this method should returntrueto indicate that no more request handlers should be invoked for the request.- Specified by:
handleRequestin interfaceSessionlessRequestHandler- Parameters:
request- the request to handleresponse- the response object to which a response can be written- Returns:
trueif a response has been written and no further request handlers should be called, otherwisefalse
-