src/main/java/com/sourcesense/confluence/servlets/CMISProxyServlet.java
public void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException, ServletException {
    // Create a standard POST request
    String contentType = httpServletRequest.getContentType();
    String destinationUrl = this.getProxyURL(httpServletRequest);
    debug("POST Request URL: " + httpServletRequest.getRequestURL(), "    Content Type: " + contentType, " Destination URL: " + destinationUrl);
    PostMethod postMethodProxyRequest = new PostMethod(destinationUrl);
    // Forward the request headers
    setProxyRequestHeaders(httpServletRequest, postMethodProxyRequest);
    setProxyRequestCookies(httpServletRequest, postMethodProxyRequest);
    // Check if this is a mulitpart (file upload) POST
    if (ServletFileUpload.isMultipartContent(httpServletRequest)) {
      this.handleMultipartPost(postMethodProxyRequest, httpServletRequest);
    } else {
      if (contentType == null || PostMethod.FORM_URL_ENCODED_CONTENT_TYPE.equals(contentType)) {
        this.handleStandardPost(postMethodProxyRequest, httpServletRequest);
      } else {
        this.handleContentPost(postMethodProxyRequest, httpServletRequest);
      }
    }
    // Execute the proxy request
    this.executeProxyRequest(postMethodProxyRequest, httpServletRequest, httpServletResponse);
  }
/**
   * Performs an HTTP POST request
   *
   * @param httpServletRequest  The {@link HttpServletRequest} object passed
   *                            in by the servlet engine representing the
   *                            client request to be proxied
   * @param httpServletResponse The {@link HttpServletResponse} object by which
   *                            we can send a proxied response to the client
   */
Performs an HTTP POST request

@param httpServletRequest  The  HttpServletRequest object passed
in by the servlet engine representing the
client request to be proxied
@param httpServletResponse The  HttpServletResponse object by which
we can send a proxied response to the client
Performs an HTTP POST request @param httpServletRequest The HttpServletRequest object passed in by the servlet engine representing the client request to be proxied @param httpServletResponse The HttpServletResponse object by which we can send a proxied response to the client
public void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException, ServletException {
    String contentType = httpServletRequest.getContentType();
    String destinationUrl = this.getProxyURL(httpServletRequest);
    debug("POST Request URL: " + httpServletRequest.getRequestURL(), "    Content Type: " + contentType, " Destination URL: " + destinationUrl);
    PostMethod postMethodProxyRequest = new PostMethod(destinationUrl);
    setProxyRequestHeaders(httpServletRequest, postMethodProxyRequest);
    setProxyRequestCookies(httpServletRequest, postMethodProxyRequest);
    if (ServletFileUpload.isMultipartContent(httpServletRequest)) {
      this.handleMultipartPost(postMethodProxyRequest, httpServletRequest);
    } else {
      if (contentType == null || PostMethod.FORM_URL_ENCODED_CONTENT_TYPE.equals(contentType)) {
        this.handleStandardPost(postMethodProxyRequest, httpServletRequest);
      } else {
        this.handleContentPost(postMethodProxyRequest, httpServletRequest);
      }
    }
    this.executeProxyRequest(postMethodProxyRequest, httpServletRequest, httpServletResponse);
  }
public void doPost ( HttpServletRequest httpServletRequest , HttpServletResponse httpServletResponse ) throws IOException , ServletException { String contentType = httpServletRequest . getContentType ( ) ; String destinationUrl = this . getProxyURL ( httpServletRequest ) ; debug ( "POST Request URL: " + httpServletRequest . getRequestURL ( ) , "    Content Type: " + contentType , " Destination URL: " + destinationUrl ) ; PostMethod postMethodProxyRequest = new PostMethod ( destinationUrl ) ; setProxyRequestHeaders ( httpServletRequest , postMethodProxyRequest ) ; setProxyRequestCookies ( httpServletRequest , postMethodProxyRequest ) ; if ( ServletFileUpload . isMultipartContent ( httpServletRequest ) ) { this . handleMultipartPost ( postMethodProxyRequest , httpServletRequest ) ; } else { if ( contentType == null || PostMethod . FORM_URL_ENCODED_CONTENT_TYPE . equals ( contentType ) ) { this . handleStandardPost ( postMethodProxyRequest , httpServletRequest ) ; } else { this . handleContentPost ( postMethodProxyRequest , httpServletRequest ) ; } } this . executeProxyRequest ( postMethodProxyRequest , httpServletRequest , httpServletResponse ) ; }
Performs an HTTP POST request
Performs an HTTP POST request
// Create a standard POST request
 // Forward the request headers
 // Check if this is a mulitpart (file upload) POST
 // Execute the proxy request
