Class MkWorkspaceMethod

  • All Implemented Interfaces:
    org.apache.commons.httpclient.HttpMethod

    public class MkWorkspaceMethod
    extends XMLResponseMethodBase
    The MkWorkspace method is used to create a new workspace. New workspaces can only be created in the workspace collection of the server. A workspace can contain version controled resources and any other. Each resource must identify its workspace. It is not allowed to create a new workspace inside an exiting workspace.

    Example Request

     MKWORKSPACE /ws/myWs/ HTTP/1.1
     Host: www.server.org
     

    Example Response

     HTTP/1.1 201 Created
     
    • Constructor Detail

      • MkWorkspaceMethod

        public MkWorkspaceMethod()
        Method constructor.
      • MkWorkspaceMethod

        public MkWorkspaceMethod​(java.lang.String path)
        Method constructor.
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.apache.commons.httpclient.HttpMethod
        Specified by:
        getName in class org.apache.commons.httpclient.HttpMethodBase
      • parseResponse

        public void parseResponse​(java.io.InputStream input,
                                  org.apache.commons.httpclient.HttpState state,
                                  org.apache.commons.httpclient.HttpConnection conn)
                           throws java.io.IOException,
                                  org.apache.commons.httpclient.HttpException
        Parse response.
        Overrides:
        parseResponse in class XMLResponseMethodBase
        Parameters:
        input - Input stream
        Throws:
        java.io.IOException
        org.apache.commons.httpclient.HttpException