public class EsRequest extends Object
Constructor and Description |
---|
EsRequest()
Creates new document.
|
EsRequest(Document origin)
Creates new document with initial content.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String name)
Gets property value.
|
void |
put(String name,
Object value)
Adds single property value.
|
void |
put(String name,
Object[] values)
Adds multivalued property value.
|
void |
remove(String name)
Removes property.
|
String |
toString() |
void |
write(OutputStream out)
Writes document content to the stream.
|
public EsRequest()
public EsRequest(Document origin)
origin
- initial content.public void put(String name, Object value)
name
- property name.value
- property value.public void put(String name, Object[] values)
name
- property name.value
- property values.public Object get(String name)
name
- property name.public void remove(String name)
name
- property name.public void write(OutputStream out) throws IOException
out
- output stream.IOException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.