|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.transport.websocket.WebSocketUtils
public final class WebSocketUtils
Method Summary | |
---|---|
static byte[] |
buildRequest(String method,
String url,
Map<String,String> headers,
byte[] data,
int offset,
int length)
Build request bytes with the specified method, url, headers, and content entity. |
static byte[] |
buildResponse(byte[] data,
int offset,
int length)
Build response bytes without status and type information. |
static byte[] |
buildResponse(Map<String,String> headers,
byte[] data,
int offset,
int length)
Build response bytes with the status and type information specified in the headers. |
static Map<String,String> |
readHeaders(InputStream in)
Read header properties from the specified input stream. |
static String |
readLine(InputStream in)
Read a line terminated by '\n' optionally preceded by '\r' from the specified input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Map<String,String> readHeaders(InputStream in) throws IOException
in
- the input stream
IOException
public static String readLine(InputStream in) throws IOException
in
- the input stream
IOException
public static byte[] buildResponse(Map<String,String> headers, byte[] data, int offset, int length)
headers
- data
- offset
- length
-
public static byte[] buildResponse(byte[] data, int offset, int length)
data
- offset
- length
-
public static byte[] buildRequest(String method, String url, Map<String,String> headers, byte[] data, int offset, int length)
method
- url
- headers
- data
- offset
- length
-
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |