|
OracleAS Syndication Services API Reference 10g (9.0.4) Part No. B10399-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.syndicate.client.SyndicateConnectionFactory
Entry point for all Oracle Syndication Services client APIs defines APIs fro creating SyndicateConnection instances which defines the necessary methods to access the server. Syndication clients are generally stateful as they may need to keep track of the subscriptions created and their state. Implementation of the SyndicateClientStateHandler
interface can be supplied upon SyndicateConnection creation to maintain the client state.
The most common way to create a SyndicateConnection would be the following:
SyndicateConnectionFactory scf = SyndicateConnectionFactory.getInstance(); SyndicateCientStateHandler scsh = scf.getDefaultSyndicateClientStateHandler("synd_state.xml"); SyndicateConnection sc = scf.createSyndicateConnection("http://my.syndication.com/syndserver/server", "myusername", "mypassword", scsh);
Method Summary | |
SyndicateConnection |
createSyndicateConnection(java.lang.String syndEndPoint, java.lang.String username, java.lang.String password) Creates a new connection requiring HTTP Basic/Digest Authentication to establish a session with the server. |
SyndicateConnection |
createSyndicateConnection(java.lang.String syndEndPoint, java.lang.String username, java.lang.String password, SyndicateClientStateHandler sh) Creates a new connection requiring HTTP Basic/Digest Authentication to establish a session with the server. |
SyndicateConnection |
createSyndicateConnection(SyndicateSubscriber subscriber, java.lang.String syndEndPoint) Creates a new connection which requires no authentication. |
SyndicateConnection |
createSyndicateConnection(SyndicateSubscriber subscriber, java.lang.String syndEndPoint, SyndicateClientStateHandler scsh) Creates a new connection with the no authentication. |
SyndicateClientStateHandler |
getDefaultSyndicateClientStateHandler(java.lang.String filename) Create a default SyndicateClientStateHandler to be used. |
static SyndicateConnectionFactory |
getInstance() Returns the SyndicateConnectionFactory instance. |
java.lang.String |
getProxyHost() Returns the host name of the HTTP proxy used for new connections. |
int |
getProxyPort() Returns the port of the HTTP proxy used for new connections. |
oracle.security.ssl.OracleSSLCredential |
getSSLCredential() Returns the SSLCredential used new SyndicateConnection created by this factory. |
int |
getTimeout() Get the transport read timeout. |
void |
setProxyServer(java.lang.String host, int iPort) Set proxy the HTTP proxy host for all the connections created by this factory. |
void |
setSSLCredential(oracle.security.ssl.OracleSSLCredential osslc) Sets the OracleSSLCredential object for use in SSL connections. |
void |
setTimeout(int iTimeout) Set the timeout value new SyndicateConnections created by this factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SyndicateConnectionFactory getInstance()
public void setProxyServer(java.lang.String host, int iPort)
host
- the transport proxy host or null if no proxy.public java.lang.String getProxyHost()
public int getProxyPort()
public void setTimeout(int iTimeout)
timeout
- the amount of time, in ms, to block on reading data. A zero value indicates an infinite timeout.public int getTimeout()
public oracle.security.ssl.OracleSSLCredential getSSLCredential()
public void setSSLCredential(oracle.security.ssl.OracleSSLCredential osslc)
sslCredential
- the credential object that will be used for the connection.public SyndicateConnection createSyndicateConnection(SyndicateSubscriber subscriber, java.lang.String syndEndPoint) throws SyndicateException
subscriber,
- structure containing subscriber IDsyndEndPoint,
- URL of the syndication serverpublic SyndicateConnection createSyndicateConnection(SyndicateSubscriber subscriber, java.lang.String syndEndPoint, SyndicateClientStateHandler scsh) throws SyndicateException
subscriber,
- structure containing subscriber IDsyndEndPoint,
- URL of the syndication serversh,
- state handler to be used for pesrsistency of suubscription infopublic SyndicateConnection createSyndicateConnection(java.lang.String syndEndPoint, java.lang.String username, java.lang.String password, SyndicateClientStateHandler sh) throws SyndicateException
syndEndPoint,
- URL of the syndication serverusername
- to be used for HTTP Basic/Digest authenticationpassword
- to be used for HTTP Basic/Digest authenticationsh
- state handler to be used for persistency of suubscription infopublic SyndicateConnection createSyndicateConnection(java.lang.String syndEndPoint, java.lang.String username, java.lang.String password) throws SyndicateException
syndEndPoint,
- URL of the syndication serverusername
- to be used for HTTP Basic/Digest authenticationpassword
- to be used for HTTP Basic/Digest authenticationpublic SyndicateClientStateHandler getDefaultSyndicateClientStateHandler(java.lang.String filename) throws SyndicateClientException
XMLSyndicateClientStateHandler
which will store the client state information to an the XML file whose name is supplied.
|
Copyright © 2001, 2003, Oracle. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2003, Oracle. All rights reserved.