OMCDiagnostics Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | OMCDiagnostics.h |
Overview
The Diagnostics interface is responsible for adding the appropriate HTTP headers
to any OMCe URL request. Note this class is typically used indirectly through
[OMCMobileBackend setHTTPHeadersOnURLRequest:], so this class would not need
to be used directly.
mobileBackend
The mobile backend that is being tracked.
@property (readonly, nonatomic, weak) OMCMobileBackend *mobileBackendDeclared In
OMCDiagnostics.h
deviceID
The device ID HTTP header value.
Uses the value returned by [UIDevice identifierForVendor].
@property (readonly, nonatomic) NSString *deviceIDDeclared In
OMCDiagnostics.h
sessionID
The session ID HTTP header value.
Uses the value returned by getpid().
@property (readonly, nonatomic) NSString *sessionIDDeclared In
OMCDiagnostics.h
requestTimestamp
The request timestamp HTTP header value.
Uses the value returned by [NSDate date].
@property (readonly, nonatomic) NSString *requestTimestampDeclared In
OMCDiagnostics.h
– setHTTPHeadersOnURLRequest:
Sets all the required OMCe Diagnostics headers on the specified URL request.
- (void)setHTTPHeadersOnURLRequest:(NSMutableURLRequest *)requestParameters
request |
The URL request. |
|---|
Discussion
Warning: Raises an NSInvalidArgumentException if request is nil.
See Also
[OMCMobileBackend setHTTPHeadersOnURLRequest:]
Declared In
OMCDiagnostics.h
– setTimestampOnURLRequest:
Sets the OMCe Diagnostics timestamp on the specified URL request.
- (void)setTimestampOnURLRequest:(NSMutableURLRequest *)requestParameters
request |
The URL request. |
|---|
Discussion
Warning: Raises an NSInvalidArgumentException if request is nil.
See Also
[OMCMobileBackend setHTTPHeadersOnURLRequest:]
Declared In
OMCDiagnostics.h