Class WebsService

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

    public class WebsService
    extends org.alfresco.officeservices.StandardWebsService
    See Also:
    Serialized Form
    • Field Summary

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

        METHODNAME_GETCONTENTTYPE, METHODNAME_GETCONTENTTYPES, METHODNAME_GETWEB, METHODNAME_GETWEBCOLLECTION, METHODNAME_UPDATECONTENTTYPEXMLDOCUMENT, METHODNAME_WEBURLFROMPAGEURL, METHODPARAMETER_CONTENTTYPEID, METHODPARAMETER_NEWDOCUMENT, METHODPARAMETER_PAGEURL, METHODPARAMETER_WEBURL, RESPONSE_CONTENT_TYPE
      • Fields inherited from class org.alfresco.officeservices.AbstractSoapService

        threadLocalDateFormatSoap
    • Constructor Summary

      Constructors 
      Constructor Description
      WebsService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.alfresco.officeservices.WebsGetContentTypeContentType getContentType​(org.alfresco.officeservices.UserData userData, String contentTypeId, javax.servlet.http.HttpServletRequest request)  
      org.alfresco.officeservices.WebsGetContentTypesContentType[] getContentTypes​(org.alfresco.officeservices.protocol.SimpleSoapParser parser, javax.servlet.http.HttpServletRequest request)  
      protected String getServerUrl​(javax.servlet.http.HttpServletRequest request)  
      List<String> getServicePrefixes​(org.alfresco.officeservices.protocol.SimpleSoapParser parser, javax.servlet.http.HttpServletRequest request)  
      List<org.alfresco.officeservices.GetWebCollectionWebDescription> getWebCollection​(org.alfresco.officeservices.protocol.SimpleSoapParser parser, javax.servlet.http.HttpServletRequest request)  
      protected org.alfresco.officeservices.GetWebWebDescription getWebResult​(org.alfresco.officeservices.UserData userData, String webUrl, org.alfresco.officeservices.protocol.SimpleSoapParser parser, javax.servlet.http.HttpServletRequest request)  
      void init​(javax.servlet.ServletConfig servletConfig_p)  
      void invalidateAuthentication​(org.alfresco.officeservices.UserData userData, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      org.alfresco.officeservices.UserData negotiateAuthentication​(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)  
      void requestAuthentication​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected boolean updateContentTypeXmlDocument​(org.alfresco.officeservices.UserData userData, String contentTypeId, org.alfresco.officeservices.protocol.SoapParameter newDocument, javax.servlet.http.HttpServletRequest request)  
      • Methods inherited from class org.alfresco.officeservices.StandardWebsService

        getWebUrlFromPageUrlResult
      • Methods inherited from class org.alfresco.officeservices.AbstractWebsService

        handleGetContentType, handleGetContentTypes, handleGetWeb, handleGetWebCollection, handleUpdateContentTypeXmlDocument, handleWebUrlFromPageUrl, soapService
      • Methods inherited from class org.alfresco.officeservices.AbstractSoapService

        doPost, formatDate, getThreadDateFormatSoap, parseDate, writeEncoded, writeEncoded2, writeXmlAttribute
      • Methods inherited from class javax.servlet.http.HttpServlet

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

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Field Detail

      • servicePrefixes

        protected List<String> servicePrefixes
      • userData

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

      • WebsService

        public WebsService()
    • 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 List<String> getServicePrefixes​(org.alfresco.officeservices.protocol.SimpleSoapParser parser,
                                               javax.servlet.http.HttpServletRequest request)
        Specified by:
        getServicePrefixes in class org.alfresco.officeservices.StandardWebsService
      • getServerUrl

        protected String getServerUrl​(javax.servlet.http.HttpServletRequest request)
      • getWebCollection

        public List<org.alfresco.officeservices.GetWebCollectionWebDescription> getWebCollection​(org.alfresco.officeservices.protocol.SimpleSoapParser parser,
                                                                                                 javax.servlet.http.HttpServletRequest request)
        Specified by:
        getWebCollection in class org.alfresco.officeservices.AbstractWebsService
      • getWebResult

        protected org.alfresco.officeservices.GetWebWebDescription getWebResult​(org.alfresco.officeservices.UserData userData,
                                                                                String webUrl,
                                                                                org.alfresco.officeservices.protocol.SimpleSoapParser parser,
                                                                                javax.servlet.http.HttpServletRequest request)
        Specified by:
        getWebResult in class org.alfresco.officeservices.AbstractWebsService
      • getContentTypes

        public org.alfresco.officeservices.WebsGetContentTypesContentType[] getContentTypes​(org.alfresco.officeservices.protocol.SimpleSoapParser parser,
                                                                                            javax.servlet.http.HttpServletRequest request)
        Specified by:
        getContentTypes in class org.alfresco.officeservices.AbstractWebsService
      • getContentType

        protected org.alfresco.officeservices.WebsGetContentTypeContentType getContentType​(org.alfresco.officeservices.UserData userData,
                                                                                           String contentTypeId,
                                                                                           javax.servlet.http.HttpServletRequest request)
                                                                                    throws org.alfresco.officeservices.exceptions.AuthenticationRequiredException
        Specified by:
        getContentType in class org.alfresco.officeservices.AbstractWebsService
        Throws:
        org.alfresco.officeservices.exceptions.AuthenticationRequiredException
      • negotiateAuthentication

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

        public void invalidateAuthentication​(org.alfresco.officeservices.UserData userData,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws IOException
        Specified by:
        invalidateAuthentication in class org.alfresco.officeservices.AbstractSoapService
        Throws:
        IOException
      • requestAuthentication

        public void requestAuthentication​(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws IOException
        Specified by:
        requestAuthentication in class org.alfresco.officeservices.AbstractSoapService
        Throws:
        IOException
      • updateContentTypeXmlDocument

        protected boolean updateContentTypeXmlDocument​(org.alfresco.officeservices.UserData userData,
                                                       String contentTypeId,
                                                       org.alfresco.officeservices.protocol.SoapParameter newDocument,
                                                       javax.servlet.http.HttpServletRequest request)
                                                throws org.alfresco.officeservices.exceptions.AuthenticationRequiredException
        Specified by:
        updateContentTypeXmlDocument in class org.alfresco.officeservices.AbstractWebsService
        Throws:
        org.alfresco.officeservices.exceptions.AuthenticationRequiredException