Beispiel #1
0
 /// <summary>
 /// Forms Account URL
 /// </summary>
 /// <param name="client">Instance of client</param>
 /// <returns>Account URL</returns>
 internal static String formAccountURL(Client client)
 {
     return CommonConstants.HTTP_PREFIX + client.serverIP + ":" +
         CommonConstants.PORT_NUMBER_CONSTANT +
         CommonConstants.CDMI_PATH_CONSTANT +
         client.username + "/";
 }
Beispiel #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="client">current instance of Client</param>
        /// <param name="path">Path to container</param>
        public Container(Client client, String path)
        {
            try
            {
                this.client = client;
                this.path = path;
                toString();
            }
            catch (ExceptionHandler)
            {

            }
        }
Beispiel #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal HTTPRequest(Client client)
 {
     this.client = client;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal DelHTTPRequest(Client client)
     : base(client)
 {
     method = "DELETE";
 }
Beispiel #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of Client</param>
 public Handler(Client client)
 {
     this.client = client;
 }
Beispiel #6
0
 /// <summary>
 /// Forms Object URL
 /// </summary>
 /// <param name="client">Instance of client</param>
 /// <param name="path">Path to object</param>
 /// <returns>Object URL</returns>
 internal static String formObjectURL(Client client, String path)
 {
     return CommonConstants.HTTP_PREFIX + client.serverIP + ":" +
         CommonConstants.PORT_NUMBER_CONSTANT +
         path;
 }
Beispiel #7
0
 /// <summary>
 /// Forms Authentication URL
 /// </summary>
 /// <param name="client">Instance of client</param>
 /// <returns>Authentication URL</returns>
 internal static String formAuthURL(Client client)
 {
     return CommonConstants.HTTP_PREFIX + client.serverIP + ":" +
         CommonConstants.PORT_NUMBER_CONSTANT + "/" +
         CommonConstants.AUTH_URL_CONSTANT;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal PutHTTPRequest(Client client)
     : base(client)
 {
     method = "PUT";
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal GetHTTPRequest(Client client)
     : base(client)
 {
     method = "GET";
 }