Class ServiceDispatcher

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class ServiceDispatcher
    extends org.alfresco.officeservices.StandardDispatcherService
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.String> servicePrefixes  
      protected org.alfresco.officeservices.UserData userData  
      • Fields inherited from class org.alfresco.officeservices.AbstractDispatcherService

        METHODNAME_SERVER_VERSION, METHODNAME_URL_TO_WEB_URL
      • Fields inherited from class org.alfresco.officeservices.AbstractVermeerService

        HEADER_NAME_VERMEER_CONTENT_TYPE, HEADER_VALUE_VERMEER_CONTENT_TYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      java.util.List<java.lang.String> getServicePrefixes​(org.alfresco.officeservices.protocol.VermeerRequest vermeerRequest)  
      void init​(javax.servlet.ServletConfig servletConfig_p)  
      void invalidateAuthentication​(org.alfresco.officeservices.UserData arg0, javax.servlet.http.HttpServletRequest arg1, javax.servlet.http.HttpServletResponse arg2)  
      org.alfresco.officeservices.UserData negotiateAuthentication​(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)  
      void requestAuthentication​(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)  
      void serverVersion​(org.alfresco.officeservices.protocol.VermeerRequest vermeerRequest, org.alfresco.officeservices.protocol.VermeerResponse vermeerResponse)  
      • Methods inherited from class org.alfresco.officeservices.StandardDispatcherService

        urlToWebUrl
      • Methods inherited from class org.alfresco.officeservices.AbstractDispatcherService

        vermeerServerVersion, vermeerService, vermeerUrlToWebUrl
      • Methods inherited from class org.alfresco.officeservices.AbstractVermeerService

        doPost, getSitePrefix, handleUnexpectedException, setServerProtocolVersion
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

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

      • servicePrefixes

        protected java.util.List<java.lang.String> servicePrefixes
      • userData

        protected org.alfresco.officeservices.UserData userData
    • Constructor Detail

      • ServiceDispatcher

        public ServiceDispatcher()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig servletConfig_p)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • getServicePrefixes

        public java.util.List<java.lang.String> getServicePrefixes​(org.alfresco.officeservices.protocol.VermeerRequest vermeerRequest)
        Specified by:
        getServicePrefixes in class org.alfresco.officeservices.StandardDispatcherService
      • serverVersion

        public void serverVersion​(org.alfresco.officeservices.protocol.VermeerRequest vermeerRequest,
                                  org.alfresco.officeservices.protocol.VermeerResponse vermeerResponse)
                           throws java.io.IOException,
                                  org.alfresco.officeservices.exceptions.VermeerException,
                                  org.alfresco.officeservices.exceptions.AuthenticationRequiredException
        Overrides:
        serverVersion in class org.alfresco.officeservices.StandardDispatcherService
        Throws:
        java.io.IOException
        org.alfresco.officeservices.exceptions.VermeerException
        org.alfresco.officeservices.exceptions.AuthenticationRequiredException
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp)
                      throws javax.servlet.ServletException,
                             java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • negotiateAuthentication

        public org.alfresco.officeservices.UserData negotiateAuthentication​(javax.servlet.http.HttpServletRequest arg0,
                                                                            javax.servlet.http.HttpServletResponse arg1)
                                                                     throws java.io.IOException
        Specified by:
        negotiateAuthentication in class org.alfresco.officeservices.AbstractVermeerService
        Throws:
        java.io.IOException
      • invalidateAuthentication

        public void invalidateAuthentication​(org.alfresco.officeservices.UserData arg0,
                                             javax.servlet.http.HttpServletRequest arg1,
                                             javax.servlet.http.HttpServletResponse arg2)
                                      throws java.io.IOException
        Specified by:
        invalidateAuthentication in class org.alfresco.officeservices.AbstractVermeerService
        Throws:
        java.io.IOException
      • requestAuthentication

        public void requestAuthentication​(javax.servlet.http.HttpServletRequest arg0,
                                          javax.servlet.http.HttpServletResponse arg1)
                                   throws java.io.IOException
        Specified by:
        requestAuthentication in class org.alfresco.officeservices.AbstractVermeerService
        Throws:
        java.io.IOException