|
IP*Works! SSL V6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ipworksssl.Rsss
The RSSS bean is used to retrieve, parse, and write RSS syndicated content.
The RSSS bean is the SSL-enabled equivalent of the
IP*Works! RSS bean. The main difference is the introduction of a set of
new configuration settings, properties and events that deal
with SSL security. TheSSLProviderconfiguration setting chooses a security
provider subsystem. TheSSLEnabledProtocolsandSSLCipherStrengthconfiguration settings determine which protocols are enabled and at what security level.
The SSLCertStore , SSLCertSubject , and SSLCertEncoded properties are
used to select a
client certificate if the server is requesting client authentication.
TheSSLSecurityFlagsconfiguration setting, together with the SSLServerAuthentication event
allow you to check the server identity and other security attributes.
Finally, the SSLStatus event provides information about the SSL handshake.
The RSSS bean implements a standard RSS newsreader with extended capabilities as specified at http://backend.userland.com/rss2.
The bean contains a number of properties that map directly to RSS fields.
To receive a feed call the GetFeed method with the URL or file to retrieve
specified in the URL parameter. The RSS bean can also generate
RSS feeds, which can be retrieved through the RSSData property or written
through the WriteFile method.
The RSSS bean supports all RSS feed properties
that are standard in versions 0.91, 0.92 and 2.0 of the RSS protocol through a
number of bean properties. It also supports non-standard properties as
specified in the RSS protocol through the NamespaceCount , Namespaces and NamespacePrefixes properties and the GetProperty and SetProperty methods.
Optionally, the bean can use the Microsoft WinInet library to implement the HTTP functionality. This is triggered by theUseWinInetconfiguration setting. Although some of the functionality of the bean (such as, for example, fine grained control over SSL server authentication) is not available through the WinInet compatibility layer, this option provides access to the Microsoft Internet Explorer settings on the system (such as default proxy settings, etc..) and more compatibility with Internet Explorer in general. This option is only available for Windows platforms.
| Field Summary | |
static int |
authBasic
|
static int |
authDigest
|
static int |
frAlways
|
static int |
frNever
|
static int |
frSameScheme
|
static int |
fwNone
|
static int |
fwSOCKS4
|
static int |
fwSOCKS5
|
static int |
fwTunnel
|
static int |
rssVersion091
|
static int |
rssVersion092
|
static int |
rssVersion200
|
static int |
rssVersionUndefined
|
static int |
sstMachine
|
static int |
sstPEMKey
|
static int |
sstPFXBlob
|
static int |
sstPFXFile
|
static int |
sstUser
|
| Constructor Summary | |
Rsss()
|
|
| Method Summary | |
void |
addItem(java.lang.String title,
java.lang.String description,
java.lang.String link)
Insert a new item into the beginning of an RSS feed. |
void |
addNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
Adds a namespace to the Namespaces array. |
void |
addRsssEventListener(RsssEventListener l)
|
java.lang.String |
config(java.lang.String configurationString)
Sets or retrieves a beanconfiguration setting. |
java.lang.String |
getAccept()
A list of acceptable MIME types for the request. |
int |
getAuthScheme()
The authorization scheme to be used when server authorization is to be performed. |
java.lang.String |
getChannelCategory()
Location of the current RSS channel in a hierarchy. |
java.lang.String |
getChannelCategoryDomain()
URL indicating the definition of the current RSS channel's category. |
java.lang.String |
getChannelCopyright()
Copyright information for the current RSS channel (500 char max). |
java.lang.String |
getChannelDescription()
Text description of the current RSS feed (Required - 500 char max). |
java.lang.String |
getChannelDocs()
URL of the documentation for the format used in the current RSS channel. |
java.lang.String |
getChannelLanguage()
Language code for current RSS channel. |
java.lang.String |
getChannelLastBuildDate()
The date of the current RSS channel's most recent content change. |
java.lang.String |
getChannelLink()
URL of the website that corresponds with the RSS feed (Required - 500 char max). |
java.lang.String |
getChannelManagingEditor()
Email address of the current RSS channel's editor. |
java.lang.String |
getChannelPubDate()
The date of the current RSS channel's most recent publication. |
java.lang.String |
getChannelTitle()
The title of the current RSS Feed (Required - 40 char max). |
java.lang.String |
getChannelWebMaster()
Email address of the current RSS channel's webmaster. |
void |
getFeed(java.lang.String URL)
Fetch an RSS feed. |
java.lang.String |
getFirewallHost()
Name or IP address of firewall (optional). |
java.lang.String |
getFirewallPassword()
A password if authentication is to be used when connecting through the firewall. |
int |
getFirewallPort()
Port of the firewall to connect to. |
int |
getFirewallType()
Determines the type of firewall to connect through. |
java.lang.String |
getFirewallUser()
A user name if authentication is to be used connecting through a firewall. |
int |
getFollowRedirects()
Determines what happens when the server issues a redirect. |
java.lang.String |
getImageLink()
URL associated with the channel's associated image. |
java.lang.String |
getImageTitle()
The title of the channel's associated image. |
java.lang.String |
getImageURL()
URL location of the channel's associated image. |
java.lang.String |
getItemAuthor(int itemIndex)
Email address of the current item's author. |
java.lang.String |
getItemCategory(int itemIndex)
Location of the current item within a hierarchy. |
java.lang.String |
getItemCategoryDomain(int itemIndex)
URL indicating the definition of the current item's category. |
java.lang.String |
getItemComments(int itemIndex)
URL location of the comments page for the current item. |
int |
getItemCount()
The number of items in the current RSS channel. |
java.lang.String |
getItemDescription(int itemIndex)
The content of the current item. |
java.lang.String |
getItemGuid(int itemIndex)
A unique string that identifies the current item. |
java.lang.String |
getItemLink(int itemIndex)
URL where the full text of the current item can be found. |
java.lang.String |
getItemPubDate(int itemIndex)
The date of the current item's most recent publication. |
java.lang.String |
getItemSource(int itemIndex)
Name of the RSS channel where the current item was originally published. |
java.lang.String |
getItemSourceURL(int itemIndex)
URL location of the XML-version of the current item's source. |
java.lang.String |
getItemTitle(int itemIndex)
The title or headline of the current item. |
int |
getNamespaceCount()
The number of currently-defined namespaces in this RSS channel. |
java.lang.String |
getNamespacePrefixes(int namespaceIndex)
The namespace prefixes associated with Namespaces . |
java.lang.String |
getNamespaces(int namespaceIndex)
The name or XML prefix associated with NamespacePrefixes . |
java.lang.String |
getPassword()
A password if authentication is to be used. |
java.lang.String |
getProperty(java.lang.String propertyName)
Get the value of a specific RSS feed property. |
java.lang.String |
getRSSData()
The complete text of the RSS XML file. |
int |
getRSSVersion()
The RSS protocol version of the current RSS feed. |
byte[] |
getSSLAcceptServerCert()
Instructs the bean to unconditionally accept the server certificate that matches the supplied certificate. |
byte[] |
getSSLCertEncoded()
The SSL certificate (PEM/base64 encoded). |
byte[] |
getSSLCertStore()
The name of the certificate store for the client certificate. |
java.lang.String |
getSSLCertStorePassword()
The password for the certificate store (if any). |
int |
getSSLCertStoreType()
The type of certificate store for the client certificate. |
java.lang.String |
getSSLCertSubject()
The subject of the certificate used for client authentication. |
byte[] |
getSSLServerCert()
The server certificate for the last established connection. |
java.lang.String |
getSSLServerCertStatus()
The verification status of the server certificate for the last established connection. |
java.lang.String |
getTextInputDescription()
The description for the current RSS channel's TextInput object. |
java.lang.String |
getTextInputLink()
Processor URL for the text of the current RSS channel's TextInput object. |
java.lang.String |
getTextInputName()
The name of the current RSS channel's TextInput object. |
java.lang.String |
getTextInputTitle()
The title of the current RSS channel's TextInput object. |
int |
getTimeout()
A timeout for the bean. |
void |
getURL(java.lang.String URL)
Fetch an RSS feed. |
java.lang.String |
getUser()
A user name if authentication is to be used. |
boolean |
isConnected()
Shows whether the bean is connected. |
boolean |
isIdle()
The current status of the component. |
void |
put(java.lang.String URL)
Sends data to the HTTP server using the HTTP PUT method. |
void |
readFile(java.lang.String fileName)
Load an RSS file into the bean. |
void |
removeRsssEventListener(RsssEventListener l)
|
void |
reset()
Reset all properties of the bean. |
void |
setAccept(java.lang.String accept)
A list of acceptable MIME types for the request. |
void |
setAuthScheme(int authScheme)
The authorization scheme to be used when server authorization is to be performed. |
void |
setChannelCategory(java.lang.String channelCategory)
Location of the current RSS channel in a hierarchy. |
void |
setChannelCategoryDomain(java.lang.String channelCategoryDomain)
URL indicating the definition of the current RSS channel's category. |
void |
setChannelCopyright(java.lang.String channelCopyright)
Copyright information for the current RSS channel (500 char max). |
void |
setChannelDescription(java.lang.String channelDescription)
Text description of the current RSS feed (Required - 500 char max). |
void |
setChannelDocs(java.lang.String channelDocs)
URL of the documentation for the format used in the current RSS channel. |
void |
setChannelLanguage(java.lang.String channelLanguage)
Language code for current RSS channel. |
void |
setChannelLastBuildDate(java.lang.String channelLastBuildDate)
The date of the current RSS channel's most recent content change. |
void |
setChannelLink(java.lang.String channelLink)
URL of the website that corresponds with the RSS feed (Required - 500 char max). |
void |
setChannelManagingEditor(java.lang.String channelManagingEditor)
Email address of the current RSS channel's editor. |
void |
setChannelPubDate(java.lang.String channelPubDate)
The date of the current RSS channel's most recent publication. |
void |
setChannelTitle(java.lang.String channelTitle)
The title of the current RSS Feed (Required - 40 char max). |
void |
setChannelWebMaster(java.lang.String channelWebMaster)
Email address of the current RSS channel's webmaster. |
void |
setConnected(boolean connected)
Shows whether the bean is connected. |
void |
setFirewallHost(java.lang.String firewallHost)
Name or IP address of firewall (optional). |
void |
setFirewallPassword(java.lang.String firewallPassword)
A password if authentication is to be used when connecting through the firewall. |
void |
setFirewallPort(int firewallPort)
Port of the firewall to connect to. |
void |
setFirewallType(int firewallType)
Determines the type of firewall to connect through. |
void |
setFirewallUser(java.lang.String firewallUser)
A user name if authentication is to be used connecting through a firewall. |
void |
setFollowRedirects(int followRedirects)
Determines what happens when the server issues a redirect. |
void |
setImageLink(java.lang.String imageLink)
URL associated with the channel's associated image. |
void |
setImageTitle(java.lang.String imageTitle)
The title of the channel's associated image. |
void |
setImageURL(java.lang.String imageURL)
URL location of the channel's associated image. |
void |
setItemAuthor(int itemIndex,
java.lang.String itemAuthor)
Email address of the current item's author. |
void |
setItemCategory(int itemIndex,
java.lang.String itemCategory)
Location of the current item within a hierarchy. |
void |
setItemCategoryDomain(int itemIndex,
java.lang.String itemCategoryDomain)
URL indicating the definition of the current item's category. |
void |
setItemComments(int itemIndex,
java.lang.String itemComments)
URL location of the comments page for the current item. |
void |
setItemCount(int itemCount)
The number of items in the current RSS channel. |
void |
setItemDescription(int itemIndex,
java.lang.String itemDescription)
The content of the current item. |
void |
setItemGuid(int itemIndex,
java.lang.String itemGuid)
A unique string that identifies the current item. |
void |
setItemLink(int itemIndex,
java.lang.String itemLink)
URL where the full text of the current item can be found. |
void |
setItemPubDate(int itemIndex,
java.lang.String itemPubDate)
The date of the current item's most recent publication. |
void |
setItemSource(int itemIndex,
java.lang.String itemSource)
Name of the RSS channel where the current item was originally published. |
void |
setItemSourceURL(int itemIndex,
java.lang.String itemSourceURL)
URL location of the XML-version of the current item's source. |
void |
setItemTitle(int itemIndex,
java.lang.String itemTitle)
The title or headline of the current item. |
void |
setNamespaceCount(int namespaceCount)
The number of currently-defined namespaces in this RSS channel. |
void |
setNamespacePrefixes(int namespaceIndex,
java.lang.String namespacePrefixes)
The namespace prefixes associated with Namespaces . |
void |
setNamespaces(int namespaceIndex,
java.lang.String namespaces)
The name or XML prefix associated with NamespacePrefixes . |
void |
setPassword(java.lang.String password)
A password if authentication is to be used. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Set the value of a specific RSS feed property. |
void |
setRSSVersion(int RSSVersion)
The RSS protocol version of the current RSS feed. |
void |
setSSLAcceptServerCert(byte[] SSLAcceptServerCert)
Instructs the bean to unconditionally accept the server certificate that matches the supplied certificate. |
void |
setSSLCertEncoded(byte[] SSLCertEncoded)
The SSL certificate (PEM/base64 encoded). |
void |
setSSLCertStore(byte[] SSLCertStore)
The name of the certificate store for the client certificate. |
void |
setSSLCertStorePassword(java.lang.String SSLCertStorePassword)
The password for the certificate store (if any). |
void |
setSSLCertStoreType(int SSLCertStoreType)
The type of certificate store for the client certificate. |
void |
setSSLCertSubject(java.lang.String SSLCertSubject)
The subject of the certificate used for client authentication. |
void |
setTextInputDescription(java.lang.String textInputDescription)
The description for the current RSS channel's TextInput object. |
void |
setTextInputLink(java.lang.String textInputLink)
Processor URL for the text of the current RSS channel's TextInput object. |
void |
setTextInputName(java.lang.String textInputName)
The name of the current RSS channel's TextInput object. |
void |
setTextInputTitle(java.lang.String textInputTitle)
The title of the current RSS channel's TextInput object. |
void |
setTimeout(int timeout)
A timeout for the bean. |
void |
setUser(java.lang.String user)
A user name if authentication is to be used. |
void |
writeFile(java.lang.String filename)
Write an RSS feed from the bean. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int authBasic
public static final int authDigest
public static final int fwNone
public static final int fwTunnel
public static final int fwSOCKS4
public static final int fwSOCKS5
public static final int frNever
public static final int frAlways
public static final int frSameScheme
public static final int rssVersionUndefined
public static final int rssVersion091
public static final int rssVersion092
public static final int rssVersion200
public static final int sstUser
public static final int sstMachine
public static final int sstPFXFile
public static final int sstPFXBlob
public static final int sstPEMKey
| Constructor Detail |
public Rsss()
| Method Detail |
public java.lang.String getAccept()
If the Accept property contains a non-empty string,
an HTTP Accept header is added to the request.
The Accept header is used for content negotiation. It consists of a comma-separated list of acceptable MIME types.
public void setAccept(java.lang.String accept)
throws IPWorksSSLException
If the Accept property contains a non-empty string,
an HTTP Accept header is added to the request.
The Accept header is used for content negotiation. It consists of a comma-separated list of acceptable MIME types.
IPWorksSSLExceptionpublic int getAuthScheme()
Use the AuthScheme property to tell the bean which type of authorization
to perform when the User and Password properties are set.
By default, AuthScheme is authBasic (0), and if the User and Password properties are set, the bean will attempt
basic authentication. If AuthScheme is set to authDigest (1), digest authentication
will be attempted instead.
For security reasons, setting this property will clear the values of User and Password .
public void setAuthScheme(int authScheme)
throws IPWorksSSLException
Use the AuthScheme property to tell the bean which type of authorization
to perform when the User and Password properties are set.
By default, AuthScheme is authBasic (0), and if the User and Password properties are set, the bean will attempt
basic authentication. If AuthScheme is set to authDigest (1), digest authentication
will be attempted instead.
For security reasons, setting this property will clear the values of User and Password .
IPWorksSSLExceptionpublic java.lang.String getChannelCategory()
The value of this field is a forward-slash-separated string that identifies a hierarchic location in a particular hierarchy. The conventions used to interpret an RSS channel's category depend upon the processor.
public void setChannelCategory(java.lang.String channelCategory)
throws IPWorksSSLException
The value of this field is a forward-slash-separated string that identifies a hierarchic location in a particular hierarchy. The conventions used to interpret an RSS channel's category depend upon the processor.
IPWorksSSLExceptionpublic java.lang.String getChannelCategoryDomain()
This points to a location that defines the category indicated by the ChannelCategory property.
public void setChannelCategoryDomain(java.lang.String channelCategoryDomain)
throws IPWorksSSLException
This points to a location that defines the category indicated by the ChannelCategory property.
IPWorksSSLExceptionpublic java.lang.String getChannelCopyright()
Contains copyright information about the current RSS channel.
public void setChannelCopyright(java.lang.String channelCopyright)
throws IPWorksSSLException
Contains copyright information about the current RSS channel.
IPWorksSSLExceptionpublic java.lang.String getChannelDescription()
ChannelDescription contains a short description of the
channel contents.
This property is filled in automatically after calling GetFeed .
Required fields for building RSS feeds include ChannelLink , ChannelTitle , and ChannelDescription .
public void setChannelDescription(java.lang.String channelDescription)
throws IPWorksSSLException
ChannelDescription contains a short description of the
channel contents.
This property is filled in automatically after calling GetFeed .
Required fields for building RSS feeds include ChannelLink , ChannelTitle , and ChannelDescription .
IPWorksSSLExceptionpublic java.lang.String getChannelDocs()
This field should contain a URL for the documentation describing what format was used to create the current RSS channel. The default value points to the standard RSS 2.0 documentation found at "http://backend.userland.com/rss2".
public void setChannelDocs(java.lang.String channelDocs)
throws IPWorksSSLException
This field should contain a URL for the documentation describing what format was used to create the current RSS channel. The default value points to the standard RSS 2.0 documentation found at "http://backend.userland.com/rss2".
IPWorksSSLExceptionpublic java.lang.String getChannelLanguage()
This property is required for feeds that conform to version 0.91 of the RSS protocol. It contains the language code used to identify the language of the current RSS channel.
Examples include:
For a detailed explanation about language codes please refer to RFC 1766.
public void setChannelLanguage(java.lang.String channelLanguage)
throws IPWorksSSLException
This property is required for feeds that conform to version 0.91 of the RSS protocol. It contains the language code used to identify the language of the current RSS channel.
Examples include:
For a detailed explanation about language codes please refer to RFC 1766.
IPWorksSSLExceptionpublic java.lang.String getChannelLastBuildDate()
This field contains the date of the current RSS channel's most recent content changes. It should conform to the standards set in RFC 822, with the exception that years can be either 2 or 4 characters long.
public void setChannelLastBuildDate(java.lang.String channelLastBuildDate)
throws IPWorksSSLException
This field contains the date of the current RSS channel's most recent content changes. It should conform to the standards set in RFC 822, with the exception that years can be either 2 or 4 characters long.
IPWorksSSLExceptionpublic java.lang.String getChannelLink()
ChannelLink contains the URL that corresponds to the web site
where the RSS channel is located.
This property is filled in automatically after calling GetFeed .
Required fields for building RSS feeds include ChannelLink , ChannelTitle , and ChannelDescription .
public void setChannelLink(java.lang.String channelLink)
throws IPWorksSSLException
ChannelLink contains the URL that corresponds to the web site
where the RSS channel is located.
This property is filled in automatically after calling GetFeed .
Required fields for building RSS feeds include ChannelLink , ChannelTitle , and ChannelDescription .
IPWorksSSLExceptionpublic java.lang.String getChannelManagingEditor()
This field contains the email address or contact information for the current RSS channel's editor.
public void setChannelManagingEditor(java.lang.String channelManagingEditor)
throws IPWorksSSLException
This field contains the email address or contact information for the current RSS channel's editor.
IPWorksSSLExceptionpublic java.lang.String getChannelPubDate()
This field contains the date of the current RSS channel's most recent publication. It should conform to the standards set in RFC 822, with the exception that years can be either 2 or 4 characters long.
public void setChannelPubDate(java.lang.String channelPubDate)
throws IPWorksSSLException
This field contains the date of the current RSS channel's most recent publication. It should conform to the standards set in RFC 822, with the exception that years can be either 2 or 4 characters long.
IPWorksSSLExceptionpublic java.lang.String getChannelTitle()
ChannelTitle contains the title of the current RSS channel.
Typically the title of the channel is similar to that of the
web page where the RSS content is hosted.
This property is filled in automatically after calling GetFeed .
Required fields for building RSS feeds include ChannelLink , ChannelTitle , and ChannelDescription .
public void setChannelTitle(java.lang.String channelTitle)
throws IPWorksSSLException
ChannelTitle contains the title of the current RSS channel.
Typically the title of the channel is similar to that of the
web page where the RSS content is hosted.
This property is filled in automatically after calling GetFeed .
Required fields for building RSS feeds include ChannelLink , ChannelTitle , and ChannelDescription .
IPWorksSSLExceptionpublic java.lang.String getChannelWebMaster()
This field contains the email address or contact information for the current RSS channel's webmaster.
public void setChannelWebMaster(java.lang.String channelWebMaster)
throws IPWorksSSLException
This field contains the email address or contact information for the current RSS channel's webmaster.
IPWorksSSLExceptionpublic boolean isConnected()
Use this property to determine whether the bean is connected to the remote host or not.
public void setConnected(boolean connected)
throws IPWorksSSLException
Use this property to determine whether the bean is connected to the remote host or not.
IPWorksSSLExceptionpublic java.lang.String getFirewallHost()
If a FirewallHost is given, requested connections will be
authenticated through the specified firewall when connecting.
If the FirewallHost property is set to a Domain Name, a DNS request
is initiated. Upon successful termination of the request, the FirewallHost property is set to the corresponding address. If the
search is not successful, an error is returned.
public void setFirewallHost(java.lang.String firewallHost)
throws IPWorksSSLException
If a FirewallHost is given, requested connections will be
authenticated through the specified firewall when connecting.
If the FirewallHost property is set to a Domain Name, a DNS request
is initiated. Upon successful termination of the request, the FirewallHost property is set to the corresponding address. If the
search is not successful, an error is returned.
IPWorksSSLExceptionpublic java.lang.String getFirewallPassword()
if FirewallHost is specified, the FirewallUser and FirewallPassword properties are used to connect and authenticate
to the given firewall. If the authentication fails, a trappable error is fired.
public void setFirewallPassword(java.lang.String firewallPassword)
throws IPWorksSSLException
if FirewallHost is specified, the FirewallUser and FirewallPassword properties are used to connect and authenticate
to the given firewall. If the authentication fails, a trappable error is fired.
IPWorksSSLExceptionpublic int getFirewallPort()
The TCP port for the FirewallHost . See the
description of the FirewallHost property for
details.
Note that the FirewallPort is set automatically
when FirewallType is set to a valid value. See the
description of the FirewallType property for
details.
public void setFirewallPort(int firewallPort)
throws IPWorksSSLException
The TCP port for the FirewallHost . See the
description of the FirewallHost property for
details.
Note that the FirewallPort is set automatically
when FirewallType is set to a valid value. See the
description of the FirewallType property for
details.
IPWorksSSLExceptionpublic int getFirewallType()
The applicable values are the following:
FirewallPort is set to 80.
FirewallPort is set to 1080.
FirewallPort is set to 1080.
public void setFirewallType(int firewallType)
throws IPWorksSSLException
The applicable values are the following:
FirewallPort is set to 80.
FirewallPort is set to 1080.
FirewallPort is set to 1080.
IPWorksSSLExceptionpublic java.lang.String getFirewallUser()
if FirewallHost is specified, the FirewallUser and FirewallPassword properties are used to connect and authenticate
to the given firewall. If the authentication fails, a trappable error is fired.
public void setFirewallUser(java.lang.String firewallUser)
throws IPWorksSSLException
if FirewallHost is specified, the FirewallUser and FirewallPassword properties are used to connect and authenticate
to the given firewall. If the authentication fails, a trappable error is fired.
IPWorksSSLExceptionpublic int getFollowRedirects()
Normally, the bean returns an error if the server responds
with an "Object Moved" message. If FollowRedirects is set to
frAlways (1) the new URL for the object is retrieved automatically
every time.
If FollowRedirects is set to frSameScheme (2), the new URL is
retrieved automatically only if the URLScheme is the same, otherwise
the bean throws an IPWorksException
raises an IPWorksException exception
.
Note that following the HTTP specification, unless FollowRedirects is
set to frAlways (1), automatic redirects will be performed only for 'GET'
or 'HEAD' requests. Other methods could potentially change the conditions
of the initial request and create security vulnerabilities.
Furthermore, if either the new URL server and port are different than
the existing one, User and Password are also reset to empty,
unless FollowRedirects is set to frAlways (1), in which case
the same credentials are used to connect to the new server.
A Redirect event is fired for every URL the product is redirected
to. In the case of automatic redirections, the Redirect event is
a good place to set properties related to the new connection (e.g. new
authentication parameters).
The default value is frNever (0). In this case, redirects are never followed, and a runtime error is generated instead.
public void setFollowRedirects(int followRedirects)
throws IPWorksSSLException
Normally, the bean returns an error if the server responds
with an "Object Moved" message. If FollowRedirects is set to
frAlways (1) the new URL for the object is retrieved automatically
every time.
If FollowRedirects is set to frSameScheme (2), the new URL is
retrieved automatically only if the URLScheme is the same, otherwise
the bean throws an IPWorksException
raises an IPWorksException exception
.
Note that following the HTTP specification, unless FollowRedirects is
set to frAlways (1), automatic redirects will be performed only for 'GET'
or 'HEAD' requests. Other methods could potentially change the conditions
of the initial request and create security vulnerabilities.
Furthermore, if either the new URL server and port are different than
the existing one, User and Password are also reset to empty,
unless FollowRedirects is set to frAlways (1), in which case
the same credentials are used to connect to the new server.
A Redirect event is fired for every URL the product is redirected
to. In the case of automatic redirections, the Redirect event is
a good place to set properties related to the new connection (e.g. new
authentication parameters).
The default value is frNever (0). In this case, redirects are never followed, and a runtime error is generated instead.
IPWorksSSLExceptionpublic boolean isIdle()
Idle will be False if the component is currently busy (communicating
and/or waiting for an answer), and True at all other times.
public java.lang.String getImageLink()
Images are required for RSS channels that conform to version 0.91 and 0.92 of the RSS protocol. The following properties are required for an image:
ImageLink ImageTitle ImageURL
public void setImageLink(java.lang.String imageLink)
throws IPWorksSSLException
Images are required for RSS channels that conform to version 0.91 and 0.92 of the RSS protocol. The following properties are required for an image:
ImageLink ImageTitle ImageURL
IPWorksSSLExceptionpublic java.lang.String getImageTitle()
Images are required for RSS channels that conform to version 0.91 and 0.92 of the RSS protocol. The following properties are required for an image:
ImageLink ImageTitle ImageURL
public void setImageTitle(java.lang.String imageTitle)
throws IPWorksSSLException
Images are required for RSS channels that conform to version 0.91 and 0.92 of the RSS protocol. The following properties are required for an image:
ImageLink ImageTitle ImageURL
IPWorksSSLExceptionpublic java.lang.String getImageURL()
Images are required for RSS channels that conform to version 0.91 and 0.92 of the RSS protocol. The following properties are required for an image:
ImageLink ImageTitle ImageURL
public void setImageURL(java.lang.String imageURL)
throws IPWorksSSLException
Images are required for RSS channels that conform to version 0.91 and 0.92 of the RSS protocol. The following properties are required for an image:
ImageLink ImageTitle ImageURL
IPWorksSSLException
public java.lang.String getItemAuthor(int itemIndex)
throws IPWorksSSLException
This field contains the email address or contact information for the current item's author.
IPWorksSSLException
public void setItemAuthor(int itemIndex,
java.lang.String itemAuthor)
throws IPWorksSSLException
This field contains the email address or contact information for the current item's author.
IPWorksSSLException
public java.lang.String getItemCategory(int itemIndex)
throws IPWorksSSLException
The value of this field is a forward-slash-separated string that identifies a hierarchic location in a particular hierarchy. The conventions used to interpret an RSS item's category depend upon the processor.
IPWorksSSLException
public void setItemCategory(int itemIndex,
java.lang.String itemCategory)
throws IPWorksSSLException
The value of this field is a forward-slash-separated string that identifies a hierarchic location in a particular hierarchy. The conventions used to interpret an RSS item's category depend upon the processor.
IPWorksSSLException
public java.lang.String getItemCategoryDomain(int itemIndex)
throws IPWorksSSLException
This points to a location that defines the category indicated by the ItemCategory property.
IPWorksSSLException
public void setItemCategoryDomain(int itemIndex,
java.lang.String itemCategoryDomain)
throws IPWorksSSLException
This points to a location that defines the category indicated by the ItemCategory property.
IPWorksSSLException
public java.lang.String getItemComments(int itemIndex)
throws IPWorksSSLException
If present, this should point to a page for comments related to the current item.
IPWorksSSLException
public void setItemComments(int itemIndex,
java.lang.String itemComments)
throws IPWorksSSLException
If present, this should point to a page for comments related to the current item.
IPWorksSSLExceptionpublic int getItemCount()
This is the total number of items in the current RSS channel.
All items are indexed from 1 to ItemCount
public void setItemCount(int itemCount)
throws IPWorksSSLException
This is the total number of items in the current RSS channel.
All items are indexed from 1 to ItemCount
IPWorksSSLException
public java.lang.String getItemDescription(int itemIndex)
throws IPWorksSSLException
This field is required for RSS feeds that conform to version 0.91
of the RSS protocol. For later versions, an item must have either ItemTitle or ItemDescription defined.
This is the description of the content of the current item. For
abstracts, ItemLink should point to the complete text of the
item.
IPWorksSSLException
public void setItemDescription(int itemIndex,
java.lang.String itemDescription)
throws IPWorksSSLException
This field is required for RSS feeds that conform to version 0.91
of the RSS protocol. For later versions, an item must have either ItemTitle or ItemDescription defined.
This is the description of the content of the current item. For
abstracts, ItemLink should point to the complete text of the
item.
IPWorksSSLException
public java.lang.String getItemGuid(int itemIndex)
throws IPWorksSSLException
This is the globally unique identifier for the current item. It is
a string that uniquely identifies the item. Aggregators can use ItemGuid to determine whether or not an item is new.
Aggregators should view this value as a string, but it is up to the source of the feed to guarantee its uniqueness. The value may be the URL link to the full text of the item in order to help guarantee that it is unique.
IPWorksSSLException
public void setItemGuid(int itemIndex,
java.lang.String itemGuid)
throws IPWorksSSLException
This is the globally unique identifier for the current item. It is
a string that uniquely identifies the item. Aggregators can use ItemGuid to determine whether or not an item is new.
Aggregators should view this value as a string, but it is up to the source of the feed to guarantee its uniqueness. The value may be the URL link to the full text of the item in order to help guarantee that it is unique.
IPWorksSSLException
public java.lang.String getItemLink(int itemIndex)
throws IPWorksSSLException
For headline or abstract items, this should be the location of the full text of the item.
IPWorksSSLException
public void setItemLink(int itemIndex,
java.lang.String itemLink)
throws IPWorksSSLException
For headline or abstract items, this should be the location of the full text of the item.
IPWorksSSLException
public java.lang.String getItemPubDate(int itemIndex)
throws IPWorksSSLException
This field contains the date of the current item's most recent publication. It should conform to the standards set in RFC 822, with the exception that years can be either 2 or 4 characters long.
IPWorksSSLException
public void setItemPubDate(int itemIndex,
java.lang.String itemPubDate)
throws IPWorksSSLException
This field contains the date of the current item's most recent publication. It should conform to the standards set in RFC 822, with the exception that years can be either 2 or 4 characters long.
IPWorksSSLException
public java.lang.String getItemSource(int itemIndex)
throws IPWorksSSLException
This property is the name of the RSS channel in which the item was
originally published, derived from the channel's title. If ItemSource or ItemSourceURL are empty, they should be filled with the values
in ChannelTitle and ChannelLink before forwarding the feed from
a news aggregator to a weblog.
IPWorksSSLException
public void setItemSource(int itemIndex,
java.lang.String itemSource)
throws IPWorksSSLException
This property is the name of the RSS channel in which the item was
originally published, derived from the channel's title. If ItemSource or ItemSourceURL are empty, they should be filled with the values
in ChannelTitle and ChannelLink before forwarding the feed from
a news aggregator to a weblog.
IPWorksSSLException
public java.lang.String getItemSourceURL(int itemIndex)
throws IPWorksSSLException
This is required if ItemSource is defined. It is a URL that
points to the XML representation of the source of the current
item.
IPWorksSSLException
public void setItemSourceURL(int itemIndex,
java.lang.String itemSourceURL)
throws IPWorksSSLException
This is required if ItemSource is defined. It is a URL that
points to the XML representation of the source of the current
item.
IPWorksSSLException
public java.lang.String getItemTitle(int itemIndex)
throws IPWorksSSLException
This field is required for RSS feeds that conform to version 0.91
of the RSS protocol. For later versions, an item must have either ItemTitle or ItemDescription defined.
ItemTitle should contain a short description of the item, or a
headline if ItemDescription is defined.
IPWorksSSLException
public void setItemTitle(int itemIndex,
java.lang.String itemTitle)
throws IPWorksSSLException
This field is required for RSS feeds that conform to version 0.91
of the RSS protocol. For later versions, an item must have either ItemTitle or ItemDescription defined.
ItemTitle should contain a short description of the item, or a
headline if ItemDescription is defined.
IPWorksSSLExceptionpublic int getNamespaceCount()
Each version of the RSS protocol defines a specific set of standard RSS feed properties. However, the general RSS protocol allows non-standard fields to be added through XML namespaces.
The following properties will be filled automatically when retrieving RSS feeds but must be filled manually when generating a feed that contains non-standard properties:
NamespaceCount NamespaceCount .
NamespacePrefixes Namespaces . When getting and
setting non-standard properties using the GetProperty and SetProperty methods, the property name must be prefixed
with an existing value in NamespacePrefixes .
Namespaces NamespacePrefixes . This is usually a URL pointing to the
XML schema for the namespace.
When parsing an RSS feed retrieved through the GetFeed method,
the bean will store all properties that are standard in
version 2.0 of the RSS protocol, regardless of the version given
by the feed. For non-standard properties, it will verify that the
property has a namespace and that the namespace is defined
within the RSS feed. If a property's definition cannot be found,
the bean throws an IPWorksException
raises an IPWorksException exception
. Non-standard fields can be
retrieved through the GetProperty method.
When using the WriteFile method to generate an RSS feed that
contains non-standard properties you must first call the Config method with AllowNonRSS as the argument
(i.e. Config("AllowNonRSS") ), and use the SetProperty method to set each non-standard property. The bean will
ignore any property whose namespace is not defined when generating
the RSSData .
Please see the GetProperty and SetProperty methods for
details on argument syntax.
public void setNamespaceCount(int namespaceCount)
throws IPWorksSSLException
Each version of the RSS protocol defines a specific set of standard RSS feed properties. However, the general RSS protocol allows non-standard fields to be added through XML namespaces.
The following properties will be filled automatically when retrieving RSS feeds but must be filled manually when generating a feed that contains non-standard properties:
NamespaceCount NamespaceCount .
NamespacePrefixes Namespaces . When getting and
setting non-standard properties using the GetProperty and SetProperty methods, the property name must be prefixed
with an existing value in NamespacePrefixes .
Namespaces NamespacePrefixes . This is usually a URL pointing to the
XML schema for the namespace.
When parsing an RSS feed retrieved through the GetFeed method,
the bean will store all properties that are standard in
version 2.0 of the RSS protocol, regardless of the version given
by the feed. For non-standard properties, it will verify that the
property has a namespace and that the namespace is defined
within the RSS feed. If a property's definition cannot be found,
the bean throws an IPWorksException
raises an IPWorksException exception
. Non-standard fields can be
retrieved through the GetProperty method.
When using the WriteFile method to generate an RSS feed that
contains non-standard properties you must first call the Config method with AllowNonRSS as the argument
(i.e. Config("AllowNonRSS") ), and use the SetProperty method to set each non-standard property. The bean will
ignore any property whose namespace is not defined when generating
the RSSData .
Please see the GetProperty and SetProperty methods for
details on argument syntax.
IPWorksSSLException
public java.lang.String getNamespacePrefixes(int namespaceIndex)
throws IPWorksSSLException
Namespaces .
Each version of the RSS protocol defines a specific set of standard RSS feed properties. However, the general RSS protocol allows non-standard fields to be added through XML namespaces.
The following properties will be filled automatically when retrieving RSS feeds but must be filled manually when generating a feed that contains non-standard properties:
NamespaceCount NamespaceCount .
NamespacePrefixes Namespaces . When getting and
setting non-standard properties using the GetProperty and SetProperty methods, the property name must be prefixed
with an existing value in NamespacePrefixes .
Namespaces NamespacePrefixes . This is usually a URL pointing to the
XML schema for the namespace.
When parsing an RSS feed retrieved through the GetFeed method,
the bean will store all properties that are standard in
version 2.0 of the RSS protocol, regardless of the version given
by the feed. For non-standard properties, it will verify that the
property has a namespace and that the namespace is defined
within the RSS feed. If a property's definition cannot be found,
the bean throws an IPWorksException
raises an IPWorksException exception
. Non-standard fields can be
retrieved through the GetProperty method.
When using the WriteFile method to generate an RSS feed that
contains non-standard properties you must first call the Config method with AllowNonRSS as the argument
(i.e. Config("AllowNonRSS") ), and use the SetProperty method to set each non-standard property. The bean will
ignore any property whose namespace is not defined when generating
the RSSData .
Please see the GetProperty and SetProperty methods for
details on argument syntax.
IPWorksSSLException
public void setNamespacePrefixes(int namespaceIndex,
java.lang.String namespacePrefixes)
throws IPWorksSSLException
Namespaces .
Each version of the RSS protocol defines a specific set of standard RSS feed properties. However, the general RSS protocol allows non-standard fields to be added through XML namespaces.
The following properties will be filled automatically when retrieving RSS feeds but must be filled manually when generating a feed that contains non-standard properties:
NamespaceCount NamespaceCount .
NamespacePrefixes Namespaces . When getting and
setting non-standard properties using the GetProperty and SetProperty methods, the property name must be prefixed
with an existing value in NamespacePrefixes .
Namespaces NamespacePrefixes . This is usually a URL pointing to the
XML schema for the namespace.
When parsing an RSS feed retrieved through the GetFeed method,
the bean will store all properties that are standard in
version 2.0 of the RSS protocol, regardless of the version given
by the feed. For non-standard properties, it will verify that the
property has a namespace and that the namespace is defined
within the RSS feed. If a property's definition cannot be found,
the bean throws an IPWorksException
raises an IPWorksException exception
. Non-standard fields can be
retrieved through the GetProperty method.
When using the WriteFile method to generate an RSS feed that
contains non-standard properties you must first call the Config method with AllowNonRSS as the argument
(i.e. Config("AllowNonRSS") ), and use the SetProperty method to set each non-standard property. The bean will
ignore any property whose namespace is not defined when generating
the RSSData .
Please see the GetProperty and SetProperty methods for
details on argument syntax.
IPWorksSSLException
public java.lang.String getNamespaces(int namespaceIndex)
throws IPWorksSSLException
NamespacePrefixes .
Each version of the RSS protocol defines a specific set of standard RSS feed properties. However, the general RSS protocol allows non-standard fields to be added through XML namespaces.
The following properties will be filled automatically when retrieving RSS feeds but must be filled manually when generating a feed that contains non-standard properties:
NamespaceCount NamespaceCount .
NamespacePrefixes Namespaces . When getting and
setting non-standard properties using the GetProperty and SetProperty methods, the property name must be prefixed
with an existing value in NamespacePrefixes .
Namespaces NamespacePrefixes . This is usually a URL pointing to the
XML schema for the namespace.
When parsing an RSS feed retrieved through the GetFeed method,
the bean will store all properties that are standard in
version 2.0 of the RSS protocol, regardless of the version given
by the feed. For non-standard properties, it will verify that the
property has a namespace and that the namespace is defined
within the RSS feed. If a property's definition cannot be found,
the bean throws an IPWorksException
raises an IPWorksException exception
. Non-standard fields can be
retrieved through the GetProperty method.
When using the WriteFile method to generate an RSS feed that
contains non-standard properties you must first call the Config method with AllowNonRSS as the argument
(i.e. Config("AllowNonRSS") ), and use the SetProperty method to set each non-standard property. The bean will
ignore any property whose namespace is not defined when generating
the RSSData .
Please see the GetProperty and SetProperty methods for
details on argument syntax.
IPWorksSSLException
public void setNamespaces(int namespaceIndex,
java.lang.String namespaces)
throws IPWorksSSLException
NamespacePrefixes .
Each version of the RSS protocol defines a specific set of standard RSS feed properties. However, the general RSS protocol allows non-standard fields to be added through XML namespaces.
The following properties will be filled automatically when retrieving RSS feeds but must be filled manually when generating a feed that contains non-standard properties:
NamespaceCount NamespaceCount .
NamespacePrefixes Namespaces . When getting and
setting non-standard properties using the GetProperty and SetProperty methods, the property name must be prefixed
with an existing value in NamespacePrefixes .
Namespaces NamespacePrefixes . This is usually a URL pointing to the
XML schema for the namespace.
When parsing an RSS feed retrieved through the GetFeed method,
the bean will store all properties that are standard in
version 2.0 of the RSS protocol, regardless of the version given
by the feed. For non-standard properties, it will verify that the
property has a namespace and that the namespace is defined
within the RSS feed. If a property's definition cannot be found,
the bean throws an IPWorksException
raises an IPWorksException exception
. Non-standard fields can be
retrieved through the GetProperty method.
When using the WriteFile method to generate an RSS feed that
contains non-standard properties you must first call the Config method with AllowNonRSS as the argument
(i.e. Config("AllowNonRSS") ), and use the SetProperty method to set each non-standard property. The bean will
ignore any property whose namespace is not defined when generating
the RSSData .
Please see the GetProperty and SetProperty methods for
details on argument syntax.
IPWorksSSLExceptionpublic java.lang.String getPassword()
If AuthScheme is set to HTTP Basic Authentication, The User and Password are Base64 encoded
and the result is put in the Authorization property
in the form "Basic [encoded-user-password]".
If AuthScheme is set to HTTP Digest Authentication, the User and Password properties are used to respond to the HTTP Digest Authentication challenge from
the server.
The User and Password properties must be set only after the URL property is set. When the URL property is set, for security reasons, the User and Password properties are immediately cleared.
public void setPassword(java.lang.String password)
throws IPWorksSSLException
If AuthScheme is set to HTTP Basic Authentication, The User and Password are Base64 encoded
and the result is put in the Authorization property
in the form "Basic [encoded-user-password]".
If AuthScheme is set to HTTP Digest Authentication, the User and Password properties are used to respond to the HTTP Digest Authentication challenge from
the server.
The User and Password properties must be set only after the URL property is set. When the URL property is set, for security reasons, the User and Password properties are immediately cleared.
IPWorksSSLExceptionpublic java.lang.String getRSSData()
When retrieving RSS feeds through the GetFeed or HTML through the GetURL method, this will
contain the complete original text of the feed. When writing an
RSS feed using the WriteFile method, the bean RSSData will be generated from the existing properties.
public int getRSSVersion()
RSSVersion is the protocol version to which the current RSS feed
conforms. Each version has slightly different requirements and a different
set of defined standard properties. When generating an RSS feed, the
bean will check this value and throw an error for missing required
properties.
The following are the values currently recognized by the bean:
In order to set properties not defined in the given version, use the NamespaceCount , Namespaces and NamespacePrefixes properties
to list and define namespace,s and the GetProperty and SetProperty methods to list and define each non-standard property.
public void setRSSVersion(int RSSVersion)
throws IPWorksSSLException
RSSVersion is the protocol version to which the current RSS feed
conforms. Each version has slightly different requirements and a different
set of defined standard properties. When generating an RSS feed, the
bean will check this value and throw an error for missing required
properties.
The following are the values currently recognized by the bean:
In order to set properties not defined in the given version, use the NamespaceCount , Namespaces and NamespacePrefixes properties
to list and define namespace,s and the GetProperty and SetProperty methods to list and define each non-standard property.
IPWorksSSLExceptionpublic byte[] getSSLAcceptServerCert()
If it finds any issues with the certificate presented by the server, the bean will normally terminate the connection with an error.
You may override this behavior by supplying a value for SSLAcceptServerCert .
If the certificate supplied in SSLAcceptServerCert is the same as the
certificate presented by the server, then the server
certificate is accepted unconditionally, and the connection will continue
normally.
Please note that this functionality is provided only for cases where you otherwise know that you are communicating with the right server. If used improperly, these property will create a security breach. Use it at your own risk.
public void setSSLAcceptServerCert(byte[] SSLAcceptServerCert)
throws IPWorksSSLException
If it finds any issues with the certificate presented by the server, the bean will normally terminate the connection with an error.
You may override this behavior by supplying a value for SSLAcceptServerCert .
If the certificate supplied in SSLAcceptServerCert is the same as the
certificate presented by the server, then the server
certificate is accepted unconditionally, and the connection will continue
normally.
Please note that this functionality is provided only for cases where you otherwise know that you are communicating with the right server. If used improperly, these property will create a security breach. Use it at your own risk.
IPWorksSSLExceptionpublic byte[] getSSLCertEncoded()
This property is used to assign a specific certificate for
SSL client authentication (SSL server authentication in
the case of the IPDaemonS bean).
The SSLCertStore and SSLCertSubject properties may also be used to specify a certificate.
When SSLCertEncoded is set, a search is initiated in the current SSLCertStore for the private key of the certificate. If the key
is found, SSLCertSubject is updated to reflect the full subject
of the selected certificate, otherwise SSLCertSubject is set
to empty string.
public void setSSLCertEncoded(byte[] SSLCertEncoded)
throws IPWorksSSLException
This property is used to assign a specific certificate for
SSL client authentication (SSL server authentication in
the case of the IPDaemonS bean).
The SSLCertStore and SSLCertSubject properties may also be used to specify a certificate.
When SSLCertEncoded is set, a search is initiated in the current SSLCertStore for the private key of the certificate. If the key
is found, SSLCertSubject is updated to reflect the full subject
of the selected certificate, otherwise SSLCertSubject is set
to empty string.
IPWorksSSLExceptionpublic byte[] getSSLCertStore()
The SSLCertStoreType property specifies the type of the
certificate store specified by SSLCertStore . If the store
is password protected, specify the password in SSLCertStorePassword .
SSLCertStore is used in conjunction with the SSLCertSubject property in order to specify client certificates. If SSLCertStore has a value, and SSLCertSubject or SSLCertEncoded is set, a search for a certificate is initiated. Please refer to the SSLCertSubject property for details.
Designations of certificate stores are platform-dependent.
The following are designations of the most common User and Machine certificate stores in Windows:
In Java, the certificate store normally is a file containing certificates and optional private keys.
When the certificate store type is PFXFile, this property must be set to the name of the file. When the type is PFXBlob, the property must be set to the binary contents of a PFX file (i.e. PKCS12 certificate store).
If the provider is OpenSSL, the certificate store is a file containing a certificate and a private key. This property must be set to the name of the file.
public void setSSLCertStore(byte[] SSLCertStore)
throws IPWorksSSLException
The SSLCertStoreType property specifies the type of the
certificate store specified by SSLCertStore . If the store
is password protected, specify the password in SSLCertStorePassword .
SSLCertStore is used in conjunction with the SSLCertSubject property in order to specify client certificates. If SSLCertStore has a value, and SSLCertSubject or SSLCertEncoded is set, a search for a certificate is initiated. Please refer to the SSLCertSubject property for details.
Designations of certificate stores are platform-dependent.
The following are designations of the most common User and Machine certificate stores in Windows:
In Java, the certificate store normally is a file containing certificates and optional private keys.
When the certificate store type is PFXFile, this property must be set to the name of the file. When the type is PFXBlob, the property must be set to the binary contents of a PFX file (i.e. PKCS12 certificate store).
If the provider is OpenSSL, the certificate store is a file containing a certificate and a private key. This property must be set to the name of the file.
IPWorksSSLExceptionpublic java.lang.String getSSLCertStorePassword()
If the certificate store is of a type that requires a password, the value of this property is used to open the certificate store.
public void setSSLCertStorePassword(java.lang.String SSLCertStorePassword)
throws IPWorksSSLException
If the certificate store is of a type that requires a password, the value of this property is used to open the certificate store.
IPWorksSSLExceptionpublic int getSSLCertStoreType()
This property can take one of the following values:
public void setSSLCertStoreType(int SSLCertStoreType)
throws IPWorksSSLException
This property can take one of the following values:
IPWorksSSLExceptionpublic java.lang.String getSSLCertSubject()
When this property is set, a search is performed in the current certificate store certificate with matching subject.
If an exact match is not found, the store is searched for subjects containing the value of the property.
When setting the property to a partial subject, CN= should be omitted. For example, the following code would find the certificate with subject CN=Test Certificate, OU=People, C=US
Example (Searching with partial subject)
Control.CertSubject = "Test"
If a match is not found, the property is set to an empty string, and no certificate is selected.
The special value "*" picks a random certificate in the certificate store.
If a matching certificate is found, the SSLCertSubject property
is set to the full subject of the matching certificate.
public void setSSLCertSubject(java.lang.String SSLCertSubject)
throws IPWorksSSLException
When this property is set, a search is performed in the current certificate store certificate with matching subject.
If an exact match is not found, the store is searched for subjects containing the value of the property.
When setting the property to a partial subject, CN= should be omitted. For example, the following code would find the certificate with subject CN=Test Certificate, OU=People, C=US
Example (Searching with partial subject)
Control.CertSubject = "Test"
If a match is not found, the property is set to an empty string, and no certificate is selected.
The special value "*" picks a random certificate in the certificate store.
If a matching certificate is found, the SSLCertSubject property
is set to the full subject of the matching certificate.
IPWorksSSLExceptionpublic byte[] getSSLServerCert()
SSLServerCert contains the server certificate for the
last established connection.
SSLServerCert is reset every time a new connection is attempted.
public java.lang.String getSSLServerCertStatus()
When the verification fails, SSLServerCertStatus contains
a string that indicates the reason(s) why, otherwise, it
contains the string "OK".
Please note that the value of SSLServerCertStatus must
be considered as only a suggestion as to the validity of the
certificate. Application software must use its own logic
to determine whether to accept the certificate or not, by using
the SSLServerCert to access other certificate
properties, or other application-specific information.
SSLServerCertStatus is reset an empty string every time a new
connection is attempted.
public java.lang.String getTextInputDescription()
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
public void setTextInputDescription(java.lang.String textInputDescription)
throws IPWorksSSLException
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
IPWorksSSLExceptionpublic java.lang.String getTextInputLink()
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
public void setTextInputLink(java.lang.String textInputLink)
throws IPWorksSSLException
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
IPWorksSSLExceptionpublic java.lang.String getTextInputName()
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
public void setTextInputName(java.lang.String textInputName)
throws IPWorksSSLException
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
IPWorksSSLExceptionpublic java.lang.String getTextInputTitle()
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
public void setTextInputTitle(java.lang.String textInputTitle)
throws IPWorksSSLException
This field is required if there is a TextInput object on the RSS channel.
Some RSS generators use TextInput objects to allow readers to input text for various purposes, the most common being site search engines. While the TextInput itself is not required for a channel, the following fields are required if the user wishes to place a TextInput in this RSS feed:
TextInputName TextInputTitle TextInputLink TextInputDescription
IPWorksSSLExceptionpublic int getTimeout()
If the Timeout property is set to 0, all operations
will run uninterrupted until successful completion, or an error condition
is encountered.
If Timeout is set to a positive value, the bean will
wait for the operation to complete before returning control.
The bean will use DoEvents to enter an efficient wait loop
during any potential waiting period, making sure that all system events
are processed immediately as they arrive. This ensures that the host
application does not "freeze" and remains responsive.
If Timeout expires, and the operation is not yet complete,
the bean throws an IPWorksException
raises an IPWorksException exception
.
Please note that by default, all timeouts are inactivity timeouts ,
i.e. the timeout period is extended by Timeout seconds when
data is successfully sent or received.
Optionally, the behavior of the bean may be changed to absolute timeouts , i.e. the bean will wait for a maximum
of Timeout seconds since the beginning of the operation, without
extending the timeout period during communications.
This behavior is controlled by theAbsoluteTimeoutconfiguration setting.
The default value for the Timeout property is 60 (seconds).
public void setTimeout(int timeout)
throws IPWorksSSLException
If the Timeout property is set to 0, all operations
will run uninterrupted until successful completion, or an error condition
is encountered.
If Timeout is set to a positive value, the bean will
wait for the operation to complete before returning control.
The bean will use DoEvents to enter an efficient wait loop
during any potential waiting period, making sure that all system events
are processed immediately as they arrive. This ensures that the host
application does not "freeze" and remains responsive.
If Timeout expires, and the operation is not yet complete,
the bean throws an IPWorksException
raises an IPWorksException exception
.
Please note that by default, all timeouts are inactivity timeouts ,
i.e. the timeout period is extended by Timeout seconds when
data is successfully sent or received.
Optionally, the behavior of the bean may be changed to absolute timeouts , i.e. the bean will wait for a maximum
of Timeout seconds since the beginning of the operation, without
extending the timeout period during communications.
This behavior is controlled by theAbsoluteTimeoutconfiguration setting.
The default value for the Timeout property is 60 (seconds).
IPWorksSSLExceptionpublic java.lang.String getUser()
If AuthScheme is set to HTTP Basic Authentication, The User and Password are Base64 encoded
and the result is put in the Authorization property
in the form "Basic [encoded-user-password]".
If AuthScheme is set to HTTP Digest Authentication, the User and Password properties are used to respond to the HTTP Digest Authentication challenge from
the server.
The User and Password properties must be set only after the URL property is set. When the URL property is set, for security reasons, the User and Password properties are immediately cleared.
public void setUser(java.lang.String user)
throws IPWorksSSLException
If AuthScheme is set to HTTP Basic Authentication, The User and Password are Base64 encoded
and the result is put in the Authorization property
in the form "Basic [encoded-user-password]".
If AuthScheme is set to HTTP Digest Authentication, the User and Password properties are used to respond to the HTTP Digest Authentication challenge from
the server.
The User and Password properties must be set only after the URL property is set. When the URL property is set, for security reasons, the User and Password properties are immediately cleared.
IPWorksSSLException
public java.lang.String config(java.lang.String configurationString)
throws IPWorksSSLException
Config is a generic method available in every bean.
It is used to set and retrieveconfiguration settingsfor the
bean.
Configuration settings are similar in functionality to properties,
but they are rarely used. In order to avoid "polluting" the property
namespace of the bean, access to these internal properties is provided through the Config method.
To set a configuration setting named PROPERTY , you must call Config("PROPERTY=VALUE") , where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a configuration setting, you must call Config("PROPERTY") . The value will be returned as a string.
IPWorksSSLException
public void addItem(java.lang.String title,
java.lang.String description,
java.lang.String link)
throws IPWorksSSLException
The AddItem method assumes that the items are new and
more important than existing items and thus adds a the item
to the beginning of the current item list. The method
requires the three standard fields Title , Description , and Link to be specified.
//set RSS channel properties or read in an existing file
...
//Add new item
RSSControl.AddNewItem("New Item Title", "Item Description", "http://www.itemsource.com")
//write out complete RSS feed to file
RSSControl.WriteFile(filename)
IPWorksSSLException
public void addNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
throws IPWorksSSLException
Namespaces array.
Prefix specifies the namespace prefix, and NamespaceURI specifies the namespace.
IPWorksSSLException
public void getFeed(java.lang.String URL)
throws IPWorksSSLException
Fetch the document using the HTTP GET method. The document contents are delivered in the RSSData property, as well as through the Transfer event, and the HTTP response headers
through the Header event.
The bean will then attempt to parse the RSS feed,
filling in the Channel and Item properties as it goes. The feed properties can be
accessed either directly through the named properties, or through
the GetProperty and SetProperty methods.
IPWorksSSLException
public java.lang.String getProperty(java.lang.String propertyName)
throws IPWorksSSLException
This method is intended for extending functionality of the RSS bean. It will get the value for a specific field of this RSS feed. Property is the name of the property according to the following convention: root/element@attribute . The root field can be any of the four following values:
ItemCount . The field element is any property of an item.
The element field can be any property of the root field, and attribute can be any property of that field.
If an attribute is not supplied, the GetProperty method
will return the text portion of element . For example:
RSSControl.GetProperty("item[5]/guid@isPermaLink")
Note : in order to add non-standard fields (i.e. fields
that are not defined in the RSS specification), element must be prefixed with a namespace that defines that field. The
same applies for the attribute field. Use the NamespaceCount , Namespaces and NamespacePrefixes properties to define and list namespaces.
IPWorksSSLException
public void getURL(java.lang.String URL)
throws IPWorksSSLException
Fetch the document using the HTTP GET method.
The document contents are delivered in the RSSData property, as well as through the Transfer event, and the HTTP response headers
through the Header event.
The bean will not parse the data returned by the server. For more control over the retrieval of the item link, please use the HTTP bean.
IPWorksSSLException
public void put(java.lang.String URL)
throws IPWorksSSLException
Send data to the HTTP server using the HTTP PUT method. The
data is taken from PostData and/or AttachedFile properties. The server response
text is received through the Transfer event, and the HTTP response headers
through the Header event.
If LocalFile is not empty the data (not the headers) is written there as well.
The user should normally have assigned correct
values to User and Password or Authorization .
IPWorksSSLException
public void readFile(java.lang.String fileName)
throws IPWorksSSLException
The ReadFile method loads an RSS file and attempts to parse it,
filling in the properties as it goes. The feed properties can be
accessed either directly through the named properties, or through
the GetProperty and SetProperty methods.
IPWorksSSLException
public void reset()
throws IPWorksSSLException
The Reset method resets all properties to the bean's
default settings. This is an easy way to clear all of the property
values before repopulating the RSS feed.
IPWorksSSLException
public void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
throws IPWorksSSLException
This method is intended for extending functionality of the RSS bean. It will set the value for a specific field of this RSS feed. Property is the name of the property according to the following convention: root/element@attribute . The root field can be any of the four following values:
ItemCount . The field element is any property of an item.
The element field can be any property of the root field, and attribute can be any property of that field. If an attribute is not supplied, Value will be placed in the text portion of element . For example:
RSSControl.SetProperty("item[5]/guid@isPermaLink", "true")
Note : in order to add non-standard fields (i.e. fields
that are not defined in the RSS specification), element must be prefixed with a namespace that defines that field. The
same applies for the attribute field. Use the NamespaceCount , Namespaces and NamespacePrefixes properties to define and list namespaces.
IPWorksSSLException
public void writeFile(java.lang.String filename)
throws IPWorksSSLException
The WriteFile method will write an RSS feed from the existing
property values to Filename . The RSS feed will be pre-
verified and any missing required fields will result in an error.
Example (Add an Item and Write)
//set RSS channel properties or read in an existing file
...
//Add new item
RSSControl.AddItem("New Item Title")
RSSControl.ItemDescription(1) = "New Item Description"
RSSControl.ItemLink(1) = "http://itemurl"
//write out complete RSS feed to file
RSSControl.WriteFile(filename)
IPWorksSSLException
public void addRsssEventListener(RsssEventListener l)
throws java.util.TooManyListenersException
java.util.TooManyListenersExceptionpublic void removeRsssEventListener(RsssEventListener l)
|
IP*Works! SSL V6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||