|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpHelper
Helper service, which provides two utilities for http bundle clients: getting http output without using sockets or already created sockets, and listing all AliasProperties objects from HttpService.
AliasProperties| Method Summary | |
|---|---|
AliasProperties[] |
getAliases()
Gets an array of all AliasProperties, corresponding to alias registrations, from the org.osgi.service.http.HttpService. |
byte[] |
getHttpOutput(byte[] httpInput)
Gets http response of a byte[] request. |
void |
process(java.io.InputStream is,
java.io.OutputStream os,
boolean isSecure)
Gets http response of an InputStream request. |
void |
process(java.net.Socket socket,
boolean isSecure)
In cases of external processing of accept sockets use this method to process the request. |
| Method Detail |
|---|
byte[] getHttpOutput(byte[] httpInput)
throws java.io.IOException
httpInput - a valid HTTP 1.0 or HTTP 1.1 request
java.io.IOException - if an IO error occurs while handling requestAliasProperties[] getAliases()
AliasProperties
void process(java.io.InputStream is,
java.io.OutputStream os,
boolean isSecure)
is - from this input stream is read a valid HTTP 1.0 or HTTP 1.1 request.
The HTTP 1.1 response of the request passed as an Output Stream.os - the output stream
void process(java.net.Socket socket,
boolean isSecure)
throws java.io.IOException
socket - Socket connection that has to be processedisSecure - boolean flag indicating if this the socket is over
a secure connection
java.io.IOException - if an IO error occurs while handling request
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||