org.rococoa.cocoa.foundation
Class NSURLConnection

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSURLConnection
All Implemented Interfaces:
NSObject, ObjCObject

public abstract class NSURLConnection
extends NSObject
implements ObjCObject


Nested Class Summary
static class NSURLConnection._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSURLConnection()
           
 
Method Summary
static NSURLConnection alloc()
           
 NSURLConnectionSynchronousLoading as_NSURLConnection_NSURLConnectionSynchronousLoading()
           
abstract  void cancel()
           
static boolean canHandleRequest(NSURLRequest request)
           
static NSURLConnection connectionWithRequest_delegate(NSURLRequest request, ObjCObject delegate)
           
static NSURLConnection createWithRequest_delegate_startImmediately(NSURLRequest request, ObjCObject delegate, boolean startImmediately)
          Factory method
static NSURLConnection createWithRequest_delegate(NSURLRequest request, ObjCObject delegate)
          Factory method
static NSURLConnection._class_ getNSClass()
           
abstract  NSURLConnection initWithRequest_delegate_startImmediately(NSURLRequest request, ObjCObject delegate, boolean startImmediately)
           
abstract  NSURLConnection initWithRequest_delegate(NSURLRequest request, ObjCObject delegate)
           
static NSURLConnection new_()
           
abstract  void scheduleInRunLoop_forMode(NSRunLoop aRunLoop, NSString mode)
          Scheduling APIs
NSURLConnection sends its delegate messages via the run loop; these methods
determine which runloops and which modes the messages will be sent on.
abstract  void start()
           
abstract  void unscheduleFromRunLoop_forMode(NSRunLoop aRunLoop, NSString mode)
          Original signature : -(void)unscheduleFromRunLoop:(NSRunLoop*) forMode:(NSString*)
native declaration : NSURLConnection.h:154
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSURLConnection

public NSURLConnection()
Method Detail

as_NSURLConnection_NSURLConnectionSynchronousLoading

public NSURLConnectionSynchronousLoading as_NSURLConnection_NSURLConnectionSynchronousLoading()

canHandleRequest

public static boolean canHandleRequest(NSURLRequest request)
Parameters:
request - The request to preflight.

connectionWithRequest_delegate

public static NSURLConnection connectionWithRequest_delegate(NSURLRequest request,
                                                             ObjCObject delegate)
Parameters:
request - The request to load. Note that the request is
deep-copied as part of the initialization process. Changes made to
the request argument after this method returns do not affect the
request that is used for the loading process.
delegate - an object to which the NSURLConnection will send
asynchronous callbacks to convey information about the progress of
the asynchronous URL load. See the NSURLConnectionDelegate informal
protocol for the list of available delegate methods.

initWithRequest_delegate

public abstract NSURLConnection initWithRequest_delegate(NSURLRequest request,
                                                         ObjCObject delegate)
Parameters:
request - The request to load. Note that the request is
deep-copied as part of the initialization process. Changes made to
the request argument after this method returns do not affect the
request that is used for the loading process.
delegate - an object to which the NSURLConnection will send
asynchronous callbacks to convey information about the progress of
the asynchronous URL load. See the NSURLConnectionDelegate informal
protocol for the list of available delegate methods.

createWithRequest_delegate

public static NSURLConnection createWithRequest_delegate(NSURLRequest request,
                                                         ObjCObject delegate)
Factory method

See Also:
initWithRequest_delegate(org.rococoa.cocoa.foundation.NSURLRequest, org.rococoa.ObjCObject)

initWithRequest_delegate_startImmediately

public abstract NSURLConnection initWithRequest_delegate_startImmediately(NSURLRequest request,
                                                                          ObjCObject delegate,
                                                                          boolean startImmediately)
Parameters:
request - The request to load.
delegate - The object which will receive the delegation messages for the connection
startImmediately - Whether the connection should start processing request immediately
or should delay processing until it receives the -start message.

createWithRequest_delegate_startImmediately

public static NSURLConnection createWithRequest_delegate_startImmediately(NSURLRequest request,
                                                                          ObjCObject delegate,
                                                                          boolean startImmediately)
Factory method

See Also:
initWithRequest_delegate_startImmediately(org.rococoa.cocoa.foundation.NSURLRequest, org.rococoa.ObjCObject, boolean)

start

public abstract void start()

cancel

public abstract void cancel()

scheduleInRunLoop_forMode

public abstract void scheduleInRunLoop_forMode(NSRunLoop aRunLoop,
                                               NSString mode)
Scheduling APIs
NSURLConnection sends its delegate messages via the run loop; these methods
determine which runloops and which modes the messages will be sent on. At creation,
a connection is scheduled on the current thread (the one where the creation takes place)
in the default mode. That can be changed to add or remove runloop + mode pairs
using the following methods. It is permissible to be scheduled on multiple run loops and modes,
or on the same run loop in multiple modes, so scheduling in one place does not cause unscheduling
in another.
Original signature : -(void)scheduleInRunLoop:(NSRunLoop*) forMode:(NSString*)
native declaration : NSURLConnection.h:153


unscheduleFromRunLoop_forMode

public abstract void unscheduleFromRunLoop_forMode(NSRunLoop aRunLoop,
                                                   NSString mode)
Original signature : -(void)unscheduleFromRunLoop:(NSRunLoop*) forMode:(NSString*)
native declaration : NSURLConnection.h:154


alloc

public static NSURLConnection alloc()

new_

public static NSURLConnection new_()

getNSClass

public static NSURLConnection._class_ getNSClass()


Copyright © 2009. All Rights Reserved.