Package org.robovm.apple.coreservices
Class CFHTTPMessage
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.coreservices.CFHTTPMessage
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFHTTPMessage extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFHTTPMessage.CFHTTPMessagePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFHTTPMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAuthentication(CFHTTPMessage authenticationFailureResponse, java.lang.String username, java.lang.String password, CFHTTPAuthenticationScheme authenticationScheme, boolean forProxy)
CFHTTPMessage
append(byte[] bytes)
CFHTTPMessage
append(byte[] bytes, int offset, int length)
CFHTTPMessage
append(java.nio.ByteBuffer bytes)
boolean
applyCredentials(CFHTTPAuthentication auth, java.lang.String username, java.lang.String password)
boolean
applyCredentials(CFHTTPAuthentication auth, java.lang.String username, java.lang.String password, java.lang.String accountDomain)
boolean
applyCredentials(CFHTTPAuthentication auth, CFHTTPAuthenticationCredentials dict)
static CFHTTPMessage
createCopy(CFAllocator alloc, CFHTTPMessage message)
static CFHTTPMessage
createCopy(CFHTTPMessage message)
static CFHTTPMessage
createEmpty(boolean isRequest)
static CFHTTPMessage
createEmpty(CFAllocator alloc, boolean isRequest)
static CFHTTPMessage
createRequest(java.lang.String requestMethod, NSURL url, CFHTTPVersion httpVersion)
static CFHTTPMessage
createRequest(CFAllocator alloc, java.lang.String requestMethod, NSURL url, CFHTTPVersion httpVersion)
static CFHTTPMessage
createResponse(long statusCode, java.lang.String statusDescription, CFHTTPVersion httpVersion)
static CFHTTPMessage
createResponse(CFAllocator alloc, long statusCode, java.lang.String statusDescription, CFHTTPVersion httpVersion)
java.util.Map<java.lang.String,java.lang.String>
getAllHeaderFields()
NSData
getBody()
static long
getClassTypeID()
java.lang.String
getHeaderFieldValue(java.lang.String headerField)
java.lang.String
getRequestMethod()
NSURL
getRequestURL()
long
getResponseStatusCode()
java.lang.String
getResponseStatusLine()
NSData
getSerializedMessage()
CFHTTPVersion
getVersion()
boolean
isHeaderComplete()
boolean
isRequest()
void
setBody(NSData bodyData)
void
setHeaderFieldValue(java.lang.String headerField, java.lang.String value)
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
append
public CFHTTPMessage append(java.nio.ByteBuffer bytes)
-
append
public CFHTTPMessage append(byte[] bytes)
-
append
public CFHTTPMessage append(byte[] bytes, int offset, int length)
-
createRequest
public static CFHTTPMessage createRequest(java.lang.String requestMethod, NSURL url, CFHTTPVersion httpVersion)
- Since:
- Available in iOS 2.0 and later.
-
createResponse
public static CFHTTPMessage createResponse(long statusCode, java.lang.String statusDescription, CFHTTPVersion httpVersion)
- Since:
- Available in iOS 2.0 and later.
-
createEmpty
public static CFHTTPMessage createEmpty(boolean isRequest)
- Since:
- Available in iOS 2.0 and later.
-
createCopy
public static CFHTTPMessage createCopy(CFHTTPMessage message)
- Since:
- Available in iOS 2.0 and later.
-
applyCredentials
public boolean applyCredentials(CFHTTPAuthentication auth, java.lang.String username, java.lang.String password, java.lang.String accountDomain)
- Since:
- Available in iOS 2.0 and later.
-
getClassTypeID
public static long getClassTypeID()
- Since:
- Available in iOS 2.0 and later.
-
createRequest
public static CFHTTPMessage createRequest(CFAllocator alloc, java.lang.String requestMethod, NSURL url, CFHTTPVersion httpVersion)
- Since:
- Available in iOS 2.0 and later.
-
createResponse
public static CFHTTPMessage createResponse(CFAllocator alloc, long statusCode, java.lang.String statusDescription, CFHTTPVersion httpVersion)
- Since:
- Available in iOS 2.0 and later.
-
createEmpty
public static CFHTTPMessage createEmpty(CFAllocator alloc, boolean isRequest)
- Since:
- Available in iOS 2.0 and later.
-
createCopy
public static CFHTTPMessage createCopy(CFAllocator alloc, CFHTTPMessage message)
- Since:
- Available in iOS 2.0 and later.
-
isRequest
public boolean isRequest()
- Since:
- Available in iOS 2.0 and later.
-
getVersion
public CFHTTPVersion getVersion()
- Since:
- Available in iOS 2.0 and later.
-
getBody
public NSData getBody()
- Since:
- Available in iOS 2.0 and later.
-
setBody
public void setBody(NSData bodyData)
- Since:
- Available in iOS 2.0 and later.
-
getHeaderFieldValue
public java.lang.String getHeaderFieldValue(java.lang.String headerField)
- Since:
- Available in iOS 2.0 and later.
-
getAllHeaderFields
public java.util.Map<java.lang.String,java.lang.String> getAllHeaderFields()
- Since:
- Available in iOS 2.0 and later.
-
setHeaderFieldValue
public void setHeaderFieldValue(java.lang.String headerField, java.lang.String value)
- Since:
- Available in iOS 2.0 and later.
-
isHeaderComplete
public boolean isHeaderComplete()
- Since:
- Available in iOS 2.0 and later.
-
getSerializedMessage
public NSData getSerializedMessage()
- Since:
- Available in iOS 2.0 and later.
-
getRequestURL
public NSURL getRequestURL()
- Since:
- Available in iOS 2.0 and later.
-
getRequestMethod
public java.lang.String getRequestMethod()
- Since:
- Available in iOS 2.0 and later.
-
addAuthentication
public boolean addAuthentication(CFHTTPMessage authenticationFailureResponse, java.lang.String username, java.lang.String password, CFHTTPAuthenticationScheme authenticationScheme, boolean forProxy)
- Since:
- Available in iOS 2.0 and later.
-
getResponseStatusCode
public long getResponseStatusCode()
- Since:
- Available in iOS 2.0 and later.
-
getResponseStatusLine
public java.lang.String getResponseStatusLine()
- Since:
- Available in iOS 2.0 and later.
-
applyCredentials
public boolean applyCredentials(CFHTTPAuthentication auth, java.lang.String username, java.lang.String password) throws CFStreamErrorException
- Throws:
CFStreamErrorException
- Since:
- Available in iOS 2.0 and later.
-
applyCredentials
public boolean applyCredentials(CFHTTPAuthentication auth, CFHTTPAuthenticationCredentials dict) throws CFStreamErrorException
- Throws:
CFStreamErrorException
- Since:
- Available in iOS 2.0 and later.
-
-