Last change
on this file since 77 was
77,
checked in by psniegowski, 11 years ago
|
Add new java codebase.
|
File size:
581 bytes
|
Line | |
---|
1 | package com.framsticks.communication.queries; |
---|
2 | |
---|
3 | import com.framsticks.communication.Request; |
---|
4 | |
---|
5 | /** |
---|
6 | * @author Piotr Sniegowski |
---|
7 | */ |
---|
8 | public class SetRequest extends ApplicationRequest { |
---|
9 | protected String value; |
---|
10 | |
---|
11 | public SetRequest() { |
---|
12 | } |
---|
13 | |
---|
14 | public SetRequest value(String value) { |
---|
15 | this.value = value; |
---|
16 | return this; |
---|
17 | } |
---|
18 | |
---|
19 | @Override |
---|
20 | protected StringBuilder construct(StringBuilder buffer) { |
---|
21 | super.construct(buffer); |
---|
22 | if (value != null) { |
---|
23 | buffer.append(" \"").append(value).append("\""); |
---|
24 | } |
---|
25 | return buffer; |
---|
26 | } |
---|
27 | @Override |
---|
28 | public String getCommand() { |
---|
29 | return "set"; |
---|
30 | } |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.