|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.communication.PublishedFileHandler
public class PublishedFileHandler
Serves a connector resource from the classpath if the resource has previously
been registered by calling
LegacyCommunicationManager.registerDependency(String, Class). Sending
arbitrary files from the classpath is prevented by only accepting resource
names that have explicitly been registered. Resources can currently only be
registered by including a JavaScript or StyleSheet annotation
on a Connector class.
| Constructor Summary | |
|---|---|
PublishedFileHandler()
|
|
| Method Summary | |
|---|---|
boolean |
handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Writes the connector resource identified by the request URI to the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PublishedFileHandler()
| Method Detail |
|---|
public boolean handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
throws java.io.IOException
handleRequest in interface RequestHandlersession - The session for the requestrequest - The request to handleresponse - The response object to which a response can be written.
java.io.IOException - If an IO error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||