|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.browser.ProtocolHandler
de.enough.polish.browser.protocols.HttpBluetoothProtocolHandler
public class HttpBluetoothProtocolHandler
Protocol handler class to handle HTTP requests over bluetooth.
Use the de.enough.polish.bluetooth.BluetoothProxy on a PC for forwarding HTTP requests.
The sent user agent is normally the string defined in the
microedition.platform system property. You can overwrite
this value by defining the polish.Browser.UserAgent variable
in your build.xml.
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.browser.ProtocolHandler |
|---|
bytebuf, protocolName |
| Constructor Summary | |
|---|---|
HttpBluetoothProtocolHandler(HashMap requestProperties,
javax.bluetooth.ServiceRecord serviceRecord)
Creates a new HttpProtocolHandler object with "http" as it's protocol. |
|
HttpBluetoothProtocolHandler(javax.bluetooth.ServiceRecord serviceRecord)
Creates a new HttpProtocolHandler object with "http" as it's protocol. |
|
HttpBluetoothProtocolHandler(String protocolName,
HashMap requestProperties,
javax.bluetooth.ServiceRecord serviceRecord)
Creates a new HttpProtocolHandler object. |
|
HttpBluetoothProtocolHandler(String protocolName,
javax.bluetooth.ServiceRecord serviceRecord)
Creates a new HttpProtocolHandler object. |
|
| Method Summary | |
|---|---|
StreamConnection |
getConnection(String url)
Creates a StreamConnection for the given url. |
| Methods inherited from class de.enough.polish.browser.ProtocolHandler |
|---|
getProtocolName, readByteArrayFromStream, stripProtocol |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpBluetoothProtocolHandler(javax.bluetooth.ServiceRecord serviceRecord)
serviceRecord - the remote service to which connections should be established
public HttpBluetoothProtocolHandler(HashMap requestProperties,
javax.bluetooth.ServiceRecord serviceRecord)
requestProperties - the request properties to use for each requestserviceRecord - the remote service to which connections should be established
public HttpBluetoothProtocolHandler(String protocolName,
javax.bluetooth.ServiceRecord serviceRecord)
protocolName - the protocolname (usually "http" or "https")serviceRecord - the remote service to which connections should be established
public HttpBluetoothProtocolHandler(String protocolName,
HashMap requestProperties,
javax.bluetooth.ServiceRecord serviceRecord)
protocolName - the protocolname (usually "http" or "https")requestProperties - the request properties to use for each requestserviceRecord - the remote service to which connections should be established| Method Detail |
|---|
public StreamConnection getConnection(String url)
throws IOException
ProtocolHandlerStreamConnection for the given url.
getConnection in class ProtocolHandlerurl - the url
IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||