com.vaadin.server
Class DynamicConnectorResource

java.lang.Object
  extended by com.vaadin.server.DynamicConnectorResource
All Implemented Interfaces:
Resource, java.io.Serializable

public class DynamicConnectorResource
extends java.lang.Object
implements Resource

A resource that is served by calling ClientConnector.handleConnectorRequest(VaadinRequest, VaadinResponse, String) with appropriate parameters.

Since:
7.0.0
Version:
@VERSION@
Author:
Vaadin Ltd
See Also:
Serialized Form

Constructor Summary
DynamicConnectorResource(ClientConnector connector, java.lang.String path)
          Creates a DynamicConnectorResoruce for the given connector that will be served by calling ClientConnector.handleConnectorRequest(VaadinRequest, VaadinResponse, String) with the given path.
DynamicConnectorResource(ClientConnector connector, java.lang.String path, java.util.Map<java.lang.String,java.lang.String> parameters)
          Creates a DynamicConnectorResoruce for the given connector that will be served by calling ClientConnector.handleConnectorRequest(VaadinRequest, VaadinResponse, String) with the given path and the given request parameters.
 
Method Summary
 ClientConnector getConnector()
           
 java.lang.String getMIMEType()
          Gets the MIME type of the resource.
 java.util.Map<java.lang.String,java.lang.String> getParameters()
           
 java.lang.String getPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicConnectorResource

public DynamicConnectorResource(ClientConnector connector,
                                java.lang.String path)
Creates a DynamicConnectorResoruce for the given connector that will be served by calling ClientConnector.handleConnectorRequest(VaadinRequest, VaadinResponse, String) with the given path.

Parameters:
connector - the connector that should serve the resource
path - the relative path of the request

DynamicConnectorResource

public DynamicConnectorResource(ClientConnector connector,
                                java.lang.String path,
                                java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a DynamicConnectorResoruce for the given connector that will be served by calling ClientConnector.handleConnectorRequest(VaadinRequest, VaadinResponse, String) with the given path and the given request parameters.

Parameters:
connector - the connector that should serve the resource
path - the relative path of the request
parameters - the parameters that should be present in the request
Method Detail

getMIMEType

public java.lang.String getMIMEType()
Description copied from interface: Resource
Gets the MIME type of the resource.

Specified by:
getMIMEType in interface Resource
Returns:
the MIME type of the resource.

getPath

public java.lang.String getPath()

getConnector

public ClientConnector getConnector()

getParameters

public java.util.Map<java.lang.String,java.lang.String> getParameters()


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.