|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnectionFactory
The IConnectionFactory should be extended by sensor or actuator elements to modify
or extend the standard GCF
behaviour.
| Method Summary | |
|---|---|
String |
getScheme()
This method must return the URI scheme that can be used with this connection factory. |
javax.microedition.io.Connection |
openConnection(String uri)
This method must return a connection to the specified URI. |
| Method Detail |
|---|
String getScheme()
If this factory specifies a URI that is also understood by the Connector then this factory overrides the
standard mechanism.
javax.microedition.io.Connection openConnection(String uri)
throws IOException
If null is returned the given uri is applied with the Connector. If this
method throws an exception, then the Connector will not be called! So you are able to just
support some URIs with the specified scheme and delegate the rest to the standard Connector.
uri - the identifier that describes the connection endpoint
null.
IOException - if error occur while establishing the connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||