public static final class AtmosphereRequestImpl.Body extends Object
Constructor and Description |
---|
Body(String data,
byte[] dataBytes,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
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
|
public Body(String data, byte[] dataBytes, int offset, int length)
public boolean hasString()
public boolean hasBytes()
public String asString()
public byte[] asBytes()
public boolean isEmpty()
Copyright © 2016. All rights reserved.