com.vaadin.server
Class ServletPortletHelper

java.lang.Object
  extended by com.vaadin.server.ServletPortletHelper
All Implemented Interfaces:
java.io.Serializable

Deprecated. As of 7.1. Will be removed or refactored in the future.

@Deprecated
public class ServletPortletHelper
extends java.lang.Object
implements java.io.Serializable

Contains helper methods shared by VaadinServlet and VaadinPortlet.

See Also:
Serialized Form

Field Summary
static java.lang.String UPLOAD_URL_PREFIX
          Deprecated.  
 
Constructor Summary
ServletPortletHelper()
          Deprecated.  
 
Method Summary
static void checkUiProviders(VaadinSession session, VaadinService vaadinService)
          Deprecated.  
static java.util.Locale findLocale(Component component, VaadinSession session, VaadinRequest request)
          Deprecated. Helper to find the most most suitable Locale.
static void initDefaultUIProvider(VaadinSession session, VaadinService vaadinService)
          Deprecated.  
static boolean isAppRequest(VaadinRequest request)
          Deprecated.  
static boolean isFileUploadRequest(VaadinRequest request)
          Deprecated.  
static boolean isHeartbeatRequest(VaadinRequest request)
          Deprecated.  
static boolean isPublishedFileRequest(VaadinRequest request)
          Deprecated.  
static boolean isPushRequest(VaadinRequest request)
          Deprecated.  
static boolean isUIDLRequest(VaadinRequest request)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPLOAD_URL_PREFIX

public static final java.lang.String UPLOAD_URL_PREFIX
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ServletPortletHelper

public ServletPortletHelper()
Deprecated. 
Method Detail

isFileUploadRequest

public static boolean isFileUploadRequest(VaadinRequest request)
Deprecated. 

isPublishedFileRequest

public static boolean isPublishedFileRequest(VaadinRequest request)
Deprecated. 

isUIDLRequest

public static boolean isUIDLRequest(VaadinRequest request)
Deprecated. 

isAppRequest

public static boolean isAppRequest(VaadinRequest request)
Deprecated. 

isHeartbeatRequest

public static boolean isHeartbeatRequest(VaadinRequest request)
Deprecated. 

isPushRequest

public static boolean isPushRequest(VaadinRequest request)
Deprecated. 

initDefaultUIProvider

public static void initDefaultUIProvider(VaadinSession session,
                                         VaadinService vaadinService)
                                  throws ServiceException
Deprecated. 
Throws:
ServiceException

checkUiProviders

public static void checkUiProviders(VaadinSession session,
                                    VaadinService vaadinService)
                             throws ServiceException
Deprecated. 
Throws:
ServiceException

findLocale

public static java.util.Locale findLocale(Component component,
                                          VaadinSession session,
                                          VaadinRequest request)
Deprecated. 
Helper to find the most most suitable Locale. These potential sources are checked in order until a Locale is found:
  1. The passed component (or UI) if not null
  2. UI.getCurrent() if defined
  3. The passed session if not null
  4. VaadinSession.getCurrent() if defined
  5. The passed request if not null
  6. VaadinService.getCurrentRequest() if defined
  7. Locale.getDefault()



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