Class AbstractWebStartClientServingServlet

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller
    Direct Known Subclasses:
    DataSetUploadClientServingServlet

    public abstract class AbstractWebStartClientServingServlet
    extends ch.systemsx.cisd.openbis.generic.client.web.server.AbstractServlet
    A servlet the generates the JNLP document for serving a web-start client.
    • Field Summary

      • Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator

        HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
      • Fields inherited from class org.springframework.context.support.ApplicationObjectSupport

        logger
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String bindTemplateParameters​(javax.servlet.http.HttpServletRequest request, ch.systemsx.cisd.common.string.Template template)  
      protected java.lang.String getCodebaseUrl​(javax.servlet.http.HttpServletRequest request)  
      protected java.lang.String getDescription()  
      protected java.lang.String getInfoLogText​(javax.servlet.http.HttpServletRequest request, java.lang.String sessionToken)
      Return the text that should go to the info log.
      protected abstract ch.systemsx.cisd.common.string.Template getJnlpTemplate()
      Return a template for the JNLP.
      protected abstract java.lang.String getMainClassName()  
      protected abstract java.lang.String getTitle()  
      protected void respondToRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class ch.systemsx.cisd.openbis.generic.client.web.server.AbstractServlet

        getSessionToken, handleRequestInternal, writeResponse
      • Methods inherited from class org.springframework.web.servlet.mvc.AbstractController

        handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
      • Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator

        applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
      • Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport

        getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
      • Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

        getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractWebStartClientServingServlet

        protected AbstractWebStartClientServingServlet()
    • Method Detail

      • respondToRequest

        protected void respondToRequest​(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response)
                                 throws java.lang.Exception,
                                        java.io.IOException
        Specified by:
        respondToRequest in class ch.systemsx.cisd.openbis.generic.client.web.server.AbstractServlet
        Throws:
        java.lang.Exception
        java.io.IOException
      • getCodebaseUrl

        protected java.lang.String getCodebaseUrl​(javax.servlet.http.HttpServletRequest request)
      • getInfoLogText

        protected java.lang.String getInfoLogText​(javax.servlet.http.HttpServletRequest request,
                                                  java.lang.String sessionToken)
        Return the text that should go to the info log.

        This method will only be called if logging at the info level is on.

      • bindTemplateParameters

        protected java.lang.String bindTemplateParameters​(javax.servlet.http.HttpServletRequest request,
                                                          ch.systemsx.cisd.common.string.Template template)
      • getJnlpTemplate

        protected abstract ch.systemsx.cisd.common.string.Template getJnlpTemplate()
        Return a template for the JNLP.
      • getMainClassName

        protected abstract java.lang.String getMainClassName()
      • getTitle

        protected abstract java.lang.String getTitle()
      • getDescription

        protected java.lang.String getDescription()