|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SchemeOptions
To allow each connection scheme to have its own protocol specific options,
a ResourceProfile can have a single SchemeOptions implementation.
When the ResourceProfile XML file is being parsed and a SchemeOptions element is encountered, the className attribute is used to instantiate a class that implements this interface. All child elements are then passed to the instance so the it can build up its properties.
| Field Summary | |
|---|---|
static int |
USE_HTTP_PROXY
Connect to the host through a HTTP proxy |
static int |
USE_SOCKS4_PROXY
Connect to the host using a SOCKS 4 proxy |
static int |
USE_SOCKS5_PROXY
Connect to the host using a SOCKS 5 proxy |
static int |
USE_SSL_EXPLORER_PROXY
Connect to the host using an SSL-Explorer proxy |
static int |
USE_STANDARD_SOCKET
Standard connection - just connect directly to the host |
| Method Summary | |
|---|---|
nanoxml.XMLElement |
getElement()
Get these options as an XML element that can be persisted along with the ResourceProfile. |
int |
getTransportProvider()
The type of transport to communicate over. |
void |
init(nanoxml.XMLElement element)
Invoked when instantiated by the ResourceProfile parser or when creating a new profile. |
boolean |
isAppropriateForScheme(java.lang.String schemeName)
Return if these options are appropriate for a scheme |
| Field Detail |
|---|
static final int USE_STANDARD_SOCKET
static final int USE_HTTP_PROXY
static final int USE_SOCKS4_PROXY
static final int USE_SOCKS5_PROXY
static final int USE_SSL_EXPLORER_PROXY
| Method Detail |
|---|
void init(nanoxml.XMLElement element)
throws ProfileException
null is provided as the element, default options
will be set.
element - SchemeOptions element
ProfileException - if any data provided by the element is invalidnanoxml.XMLElement getElement()
boolean isAppropriateForScheme(java.lang.String schemeName)
schemeName -
true if these options are appropriate for a schemeint getTransportProvider()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||