|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereRequest.Body
public static final class AtmosphereRequest.Body
| Constructor Summary | |
|---|---|
AtmosphereRequest.Body(String data,
byte[] dataBytes,
int offset,
int length)
|
|
| Method Summary | |
|---|---|
byte[] |
asBytes()
Return the request body as a byte array. |
String |
asString()
Return the request body as a String. |
int |
byteLength()
The asBytes() length |
int |
byteOffset()
The asBytes() offset |
boolean |
hasBytes()
True is the body is a byte array |
boolean |
hasString()
True is the body is a String |
boolean |
isEmpty()
True if this object is empty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtmosphereRequest.Body(String data,
byte[] dataBytes,
int offset,
int length)
| Method Detail |
|---|
public boolean hasString()
public boolean hasBytes()
public String asString()
public byte[] asBytes()
public int byteOffset()
asBytes() offset
asBytes() offsetpublic int byteLength()
asBytes() length
asBytes() lengthpublic boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||