com.vaadin.server
Class BootstrapHandler

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

Deprecated. might be refactored or removed before 7.0.0

@Deprecated
public abstract class BootstrapHandler
extends java.lang.Object
implements RequestHandler

Since:
7.0.0
Author:
Vaadin Ltd
See Also:
Serialized Form

Nested Class Summary
protected  class BootstrapHandler.BootstrapContext
          Deprecated.  
 
Constructor Summary
BootstrapHandler()
          Deprecated.  
 
Method Summary
protected  void appendMainScriptTagContents(BootstrapHandler.BootstrapContext context, java.lang.StringBuilder builder)
          Deprecated.  
 java.lang.String findAndEscapeThemeName(BootstrapHandler.BootstrapContext context)
          Deprecated. Don not override.
protected abstract  java.lang.String getApplicationId(BootstrapHandler.BootstrapContext context)
          Deprecated. Creates and returns a unique ID for the DIV where the application is to be rendered.
protected  org.json.JSONObject getApplicationParameters(BootstrapHandler.BootstrapContext context)
          Deprecated.  
protected abstract  java.lang.String getAppUri(BootstrapHandler.BootstrapContext context)
          Deprecated.  
protected  org.json.JSONObject getDefaultParameters(BootstrapHandler.BootstrapContext context)
          Deprecated.  
protected  java.lang.String getMainDivStyle(BootstrapHandler.BootstrapContext context)
          Deprecated.  
 java.lang.String getThemeName(BootstrapHandler.BootstrapContext context)
          Deprecated. Override if required
 java.lang.String getThemeUri(BootstrapHandler.BootstrapContext context, java.lang.String themeName)
          Deprecated. Get the URI for the application theme.
 java.lang.String getWidgetsetForUI(BootstrapHandler.BootstrapContext context)
          Deprecated.  
 boolean handleRequest(VaadinServiceSession session, VaadinRequest request, VaadinResponse response)
          Deprecated. Handles a non-UIDL request.
protected  void writeError(VaadinResponse response, java.lang.Throwable e)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapHandler

public BootstrapHandler()
Deprecated. 
Method Detail

handleRequest

public boolean handleRequest(VaadinServiceSession session,
                             VaadinRequest request,
                             VaadinResponse response)
                      throws java.io.IOException
Deprecated. 
Description copied from interface: RequestHandler
Handles a non-UIDL request. If a response is written, this method should return false to indicate that no more request handlers should be invoked for the request.

Specified by:
handleRequest in interface RequestHandler
Parameters:
session - The session for the request
request - The request to handle
response - The response object to which a response can be written.
Returns:
true if a response has been written and no further request handlers should be called, otherwise false
Throws:
java.io.IOException

getMainDivStyle

protected java.lang.String getMainDivStyle(BootstrapHandler.BootstrapContext context)
Deprecated. 

getApplicationId

protected abstract java.lang.String getApplicationId(BootstrapHandler.BootstrapContext context)
Deprecated. 
Creates and returns a unique ID for the DIV where the application is to be rendered.

Parameters:
context -
Returns:
the id to use in the DOM

getWidgetsetForUI

public java.lang.String getWidgetsetForUI(BootstrapHandler.BootstrapContext context)
Deprecated. 

appendMainScriptTagContents

protected void appendMainScriptTagContents(BootstrapHandler.BootstrapContext context,
                                           java.lang.StringBuilder builder)
                                    throws org.json.JSONException,
                                           java.io.IOException
Deprecated. 
Throws:
org.json.JSONException
java.io.IOException

getApplicationParameters

protected org.json.JSONObject getApplicationParameters(BootstrapHandler.BootstrapContext context)
                                                throws org.json.JSONException,
                                                       PaintException
Deprecated. 
Throws:
org.json.JSONException
PaintException

getDefaultParameters

protected org.json.JSONObject getDefaultParameters(BootstrapHandler.BootstrapContext context)
                                            throws org.json.JSONException
Deprecated. 
Throws:
org.json.JSONException

getAppUri

protected abstract java.lang.String getAppUri(BootstrapHandler.BootstrapContext context)
Deprecated. 

getThemeUri

public java.lang.String getThemeUri(BootstrapHandler.BootstrapContext context,
                                    java.lang.String themeName)
Deprecated. 
Get the URI for the application theme. A portal-wide default theme is fetched from the portal shared resource directory (if any), other themes from the portlet.

Parameters:
context -
themeName -
Returns:

getThemeName

public java.lang.String getThemeName(BootstrapHandler.BootstrapContext context)
Deprecated. 
Override if required

Parameters:
context -
Returns:

findAndEscapeThemeName

public java.lang.String findAndEscapeThemeName(BootstrapHandler.BootstrapContext context)
Deprecated. 
Don not override.

Parameters:
context -
Returns:

writeError

protected void writeError(VaadinResponse response,
                          java.lang.Throwable e)
                   throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException


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