public final class ByteNameValuePair extends Object
Constructor and Description |
---|
ByteNameValuePair(byte[] name,
byte[] value,
boolean urlEncoded)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getName() |
String |
getName(String encoding) |
String |
getName(String encoding,
String defaultValue) |
byte[] |
getValue() |
String |
getValue(String encoding) |
String |
getValue(String encoding,
String defaultValue) |
boolean |
isUrlEncoded() |
void |
setName(byte[] name) |
void |
setValue(byte[] value) |
public ByteNameValuePair(byte[] name, byte[] value, boolean urlEncoded)
name
- value
- public byte[] getName()
public String getName(String encoding) throws UnsupportedEncodingException
encoding
- UnsupportedEncodingException
public String getName(String encoding, String defaultValue)
encoding
- defaultValue
- public void setName(byte[] name)
name
- The name to set.public byte[] getValue()
public String getValue(String encoding) throws UnsupportedEncodingException
encoding
- UnsupportedEncodingException
public String getValue(String encoding, String defaultValue)
encoding
- defaultValue
- public void setValue(byte[] value)
value
- The value to set.public boolean isUrlEncoded()
Copyright © 2015 Lucee