Example #1
0
        // ---------------------------------------------------------------------------
        // ---------------------------------------------------------------------------

        /**
         *
         * @param baseURL
         *
         * @param request_pb
         *
         * @param useUnifiedServlet
         *          If true, the request object will be prefixed by
         *          CollabrifyRequest_PB, and will be sent to the unified servlet.
         *          Otherwise, the request object will be sent alone to the old
         *          specific servlet.
         *
         * @param writeCallback
         *          This will be called when it is time to write trailing data. This
         *          can be null.
         *
         */
        public HttpRequest_AddToBaseFile(String baseURL,
                                         Request_AddToBaseFile_PB request_pb, bool useUnifiedServlet,
                                         TrailingDataWriteCallback writeCallback)
            : base(baseURL,
                   (useUnifiedServlet ? mainServletExtension : servletExtension),
                   request_pb, CollabrifyRequestType_PB.ADD_TO_BASE_FILE_REQUEST,
                   new Response_AddToBaseFile_PB(), useUnifiedServlet,
                   writeCallback, null)
        {
        }// ctor
        // ---------------------------------------------------------------------------
        // ---------------------------------------------------------------------------

        /**
         *
         * @param baseURL
         *
         * @param request_pb
         *
         * @param useUnifiedServlet
         *          If true, the request object will be prefixed by
         *          CollabrifyRequest_PB, and will be sent to the unified servlet.
         *          Otherwise, the request object will be sent alone to the old
         *          specific servlet.
         *
         * @param writeCallback
         *          This will be called when it is time to write trailing data. This
         *          can be null.
         *
         */
        public HttpRequest_CreateSessionWithBaseFile(String baseURL,
                                                     Request_CreateSessionWithBaseFile_PB request_pb,
                                                     bool useUnifiedServlet, TrailingDataWriteCallback writeCallback)
            : base(baseURL,
                   (useUnifiedServlet ? mainServletExtension : servletExtension),
                   request_pb,
                   CollabrifyRequestType_PB.CREATE_SESSION_WITH_BASE_FILE_REQUEST,
                   new Response_CreateSessionWithBaseFile_PB(),
                   useUnifiedServlet, writeCallback, null)
        {
        }// ctor