|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.io.j2me.socket.ProxyInitializer
public class ProxyInitializer
Handles the string used to initialize a connection between a SocketConnection and the socket proxy on the host.
Field Summary | |
---|---|
static String |
INITIALIZER
|
static String |
SEPERATOR
|
Constructor Summary | |
---|---|
ProxyInitializer(String initStr)
Create a ProxyInitializer from a initializer string formatted using the ProxyInitializer format "connect |
|
ProxyInitializer(String host,
String port)
Create a ProxyInitializer object from a host and port string |
Method Summary | |
---|---|
String |
getHost()
Returns the hostname to connect to |
String |
getPort()
Returns the port number to connect to |
int |
getPortInt()
Returns the port number to connect to |
String |
toString()
Returns a formatted string representing the initStr to be sent to the proxy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String INITIALIZER
public static final String SEPERATOR
Constructor Detail |
---|
public ProxyInitializer(String host, String port)
host
- hostname to connect to (exmaple: www.sun.com)port
- port number to use for connection (example 80)public ProxyInitializer(String initStr) throws IllegalArgumentException
initStr
- initializer string
IllegalArgumentException
- thrown when the initStr is not properly formatted.Method Detail |
---|
public String getHost()
public String getPort()
public int getPortInt()
public String toString()
toString
in class Object
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |