Exemplo n.º 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 + "/";
 }
Exemplo n.º 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)
            {

            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal HTTPRequest(Client client)
 {
     this.client = client;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal DelHTTPRequest(Client client)
     : base(client)
 {
     method = "DELETE";
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of Client</param>
 public Handler(Client client)
 {
     this.client = client;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal PutHTTPRequest(Client client)
     : base(client)
 {
     method = "PUT";
 }
Exemplo n.º 9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="client">Instance of client</param>
 internal GetHTTPRequest(Client client)
     : base(client)
 {
     method = "GET";
 }