• Main Page
  • Classes
  • Files
  • File List

include/AmazonSDKUtil.h

00001 /*
00002  * Copyright 2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License").
00005  * You may not use this file except in compliance with the License.
00006  * A copy of the License is located at
00007  *
00008  *  http://aws.amazon.com/apache2.0
00009  *
00010  * or in the "license" file accompanying this file. This file is distributed
00011  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
00012  * express or implied. See the License for the specific language governing
00013  * permissions and limitations under the License.
00014  */
00015 
00016 #import <Foundation/Foundation.h>
00017 #import <UIKit/UIKit.h>
00018 #import "AmazonClientException.h"
00019 
00020 #define AWS_SDK_VERSION                         @"0.1.0.2"
00021 #define AWS_SDK_USER_AGENT_FORMAT       @"aws-sdk-iOS/%@ %@/%@ %@"
00022 #define kISO8061DateFormat                      @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
00023 
00024 @interface AmazonSDKUtil : NSObject {
00025 
00026 }
00027 
00028 +(NSString *)userAgentString;
00029 +(NSString *)MIMETypeForExtension:(NSString *)extension;
00030 +(NSString *)urlEncode:(NSString *)input;
00031 +(NSNumber*)convertStringToNumber:(NSString*)string;
00032 +(NSURL *)URLWithURL:(NSURL *)theURL andProtocol:(NSString *)theProtocol;
00033 
00034 @end
00035 
00036 @interface NSDate (WithISO8061Format)
00037 
00038 -(NSString *)stringWithISO8061Format;
00039 +(NSDate *)dateWithISO8061Format:(NSString *)dateString;
00040 +(NSString *)ISO8061FormattedCurrentTimestamp;
00041 
00042 @end
00043 

Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.