public static final class AtmosphereRequestImpl.Body
extends java.lang.Object
| Constructor and Description |
|---|
Body(java.lang.String data,
byte[] dataBytes,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asBytes()
Return the request body as a byte array.
|
java.lang.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(java.lang.String data,
byte[] dataBytes,
int offset,
int length)
public boolean hasString()
public boolean hasBytes()
public java.lang.String asString()
public byte[] asBytes()
public boolean isEmpty()
Copyright © 2020. All Rights Reserved.