public class ModifyKeyEntity extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
bool |
protected static byte[] |
COLON |
protected static byte[] |
COMMA |
protected static byte[] |
DOUBLEQUOTE |
protected static Base64.Encoder |
ENCODER |
protected static byte[] |
LEFTBRACKET |
protected static byte[] |
LEFTSQBRACKET |
protected static byte[] |
MESSAGE |
protected static byte[] |
NIL |
protected static byte[] |
READ |
protected static byte[] |
RIGHTBRACKET |
protected static byte[] |
RIGHTSQBRACKET |
protected static byte[] |
ROLE |
protected static byte[] |
USER |
protected static byte[] |
USERINFO |
protected static byte[] |
USERMAIL |
protected static Charset |
UTF_8 |
protected static byte[] |
WRITE |
| Constructor and Description |
|---|
ModifyKeyEntity(InputStream data,
String message,
String userInfo,
String userMail) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeContent()
Deprecated.
|
protected static byte[] |
getBytes(String tokens) |
InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
protected void |
writeBool(byte[] field,
boolean value,
OutputStream o) |
protected void |
writeData(OutputStream o) |
protected void |
writeDataField(OutputStream o) |
protected void |
writeField(byte[] field,
String value,
OutputStream o) |
protected void |
writeMetaDataField(OutputStream o) |
void |
writeTo(OutputStream o) |
protected static final Base64.Encoder ENCODER
protected static final byte[] USER
protected static final byte[] USERINFO
protected static final byte[] USERMAIL
protected static final byte[] MESSAGE
protected static final byte[] READ
protected static final byte[] WRITE
protected static final byte[] ROLE
protected static final Charset UTF_8
protected static final byte[] LEFTBRACKET
protected static final byte[] RIGHTBRACKET
protected static final byte[] COLON
protected static final byte[] DOUBLEQUOTE
protected static final byte[] COMMA
protected static final byte[] LEFTSQBRACKET
protected static final byte[] RIGHTSQBRACKET
protected static final byte[] NIL
protected final AtomicBoolean bool
public ModifyKeyEntity(InputStream data, String message, String userInfo, String userMail)
public void writeTo(OutputStream o) throws IOException
IOExceptionprotected void writeDataField(OutputStream o) throws IOException
IOExceptionprotected void writeData(OutputStream o) throws IOException
IOExceptionprotected void writeMetaDataField(OutputStream o) throws IOException
IOExceptionprotected void writeField(byte[] field,
String value,
OutputStream o)
throws IOException
IOExceptionpublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentType()
getContentType in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitypublic InputStream getContent() throws IOException, UnsupportedOperationException
getContent in interface org.apache.http.HttpEntityIOExceptionUnsupportedOperationExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntity@Deprecated public void consumeContent() throws IOException
consumeContent in interface org.apache.http.HttpEntityIOExceptionprotected static byte[] getBytes(String tokens)
protected void writeBool(byte[] field,
boolean value,
OutputStream o)
throws IOException
IOExceptionCopyright © 2019. All rights reserved.