Class MkWorkspaceMethod

java.lang.Object
org.apache.commons.httpclient.HttpMethodBase
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 Details

    • MkWorkspaceMethod

      public MkWorkspaceMethod()
      Method constructor.
    • MkWorkspaceMethod

      public MkWorkspaceMethod(String path)
      Method constructor.
  • Method Details

    • getName

      public 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(InputStream input, org.apache.commons.httpclient.HttpState state, org.apache.commons.httpclient.HttpConnection conn) throws IOException, org.apache.commons.httpclient.HttpException
      Parse response.
      Overrides:
      parseResponse in class XMLResponseMethodBase
      Parameters:
      input - Input stream
      Throws:
      IOException
      org.apache.commons.httpclient.HttpException