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:
AutoCloseable
public class CFHTTPMessage extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCFHTTPMessage.CFHTTPMessagePtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCFHTTPMessage() -
Method Summary
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
-
Constructor Details
-
CFHTTPMessage
protected CFHTTPMessage()
-
-
Method Details
-
append
-
append
-
append
-
createRequest
public static CFHTTPMessage createRequest(String requestMethod, NSURL url, CFHTTPVersion httpVersion)- Since:
- Available in iOS 2.0 and later.
-
createResponse
public static CFHTTPMessage createResponse(long statusCode, String statusDescription, CFHTTPVersion httpVersion)- Since:
- Available in iOS 2.0 and later.
-
createEmpty
- Since:
- Available in iOS 2.0 and later.
-
createCopy
- Since:
- Available in iOS 2.0 and later.
-
applyCredentials
public boolean applyCredentials(CFHTTPAuthentication auth, String username, String password, String accountDomain)- Since:
- Available in iOS 2.0 and later.
-
getClassTypeID
public static long getClassTypeID() -
createRequest
public static CFHTTPMessage createRequest(CFAllocator alloc, String requestMethod, NSURL url, CFHTTPVersion httpVersion) -
createResponse
public static CFHTTPMessage createResponse(CFAllocator alloc, long statusCode, String statusDescription, CFHTTPVersion httpVersion) -
createEmpty
-
createCopy
-
isRequest
public boolean isRequest() -
getVersion
-
getBody
-
setBody
-
getHeaderFieldValue
-
getAllHeaderFields
-
setHeaderFieldValue
-
isHeaderComplete
public boolean isHeaderComplete() -
getSerializedMessage
-
getRequestURL
-
getRequestMethod
-
addAuthentication
public boolean addAuthentication(CFHTTPMessage authenticationFailureResponse, String username, String password, CFHTTPAuthenticationScheme authenticationScheme, boolean forProxy) -
getResponseStatusCode
public long getResponseStatusCode() -
getResponseStatusLine
-
applyCredentials
public boolean applyCredentials(CFHTTPAuthentication auth, String username, String password) throws CFStreamErrorException- Throws:
CFStreamErrorException
-
applyCredentials
public boolean applyCredentials(CFHTTPAuthentication auth, CFHTTPAuthenticationCredentials dict) throws CFStreamErrorException- Throws:
CFStreamErrorException
-