LJServer



Abstract

Represents a LiveJournal server.

Discussion

This class represents the LiveJournal server on the network. LJServer does all the work of translating messages into HTTP traffic and back.

Methods

getReplyForMode:parameters:

Abstract: Sends a message to the server and returns the reply.
- (NSDictionary *)getReplyForMode:(NSString *)mode parameters:(NSDictionary *)parameters; 

This method takes a mode and a set of variable parameters, encodes them as an HTTP POST request, sends them to the server, parses the reply, and returns it as a dictionary. If a network error occurs, nil is returned. This method is only concerned with network transport. If the LiveJournal server returns an error, this method will not detect it. You should use the corresponding method in LJAccount instead.


hostname

Abstract: Obtain the hostname of the receiver.
- (NSURL *)url; 


isUsingFastServers

Abstract: Determine if fast server access is enabled.
- (BOOL)isUsingFastServers; 


proxyURL

Abstract: Obtain the URL of the proxy server.
- (NSURL *)proxyURL; 

Result: The URL of a the proxy server, or nil if proxy is disabled.

setProxyURL:

Abstract: Set the URL of a proxy server.
- (void)setProxyURL:(NSURL *)url; 

To enable proxy support, call this method with the URL of the proxy server. To disable proxy support, set proxyHostname to nil.


setURL:

Abstract: Set the URL of the host to communicate with.
- (void)setURL:(NSURL *)url; 

Parameters

NameDescription
urlThe URL of the host to connect to.

(Last Updated 2/17/2003)