Remove vaadin tests (#2257)
* Refactor Vaadin samples * Refactor Vaadin samples
This commit is contained in:
committed by
GitHub
parent
3718dfd0d1
commit
4233d90902
@@ -13,7 +13,7 @@ public class NettyServer {
|
||||
|
||||
private int port;
|
||||
|
||||
public NettyServer(int port) {
|
||||
private NettyServer(int port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class NettyServer {
|
||||
new NettyServer(port).run();
|
||||
}
|
||||
|
||||
public void run() throws Exception {
|
||||
private void run() throws Exception {
|
||||
EventLoopGroup bossGroup = new NioEventLoopGroup();
|
||||
EventLoopGroup workerGroup = new NioEventLoopGroup();
|
||||
try {
|
||||
|
||||
@@ -4,27 +4,27 @@ public class RequestData {
|
||||
private int intValue;
|
||||
private String stringValue;
|
||||
|
||||
public int getIntValue() {
|
||||
int getIntValue() {
|
||||
return intValue;
|
||||
}
|
||||
|
||||
public void setIntValue(int intValue) {
|
||||
void setIntValue(int intValue) {
|
||||
this.intValue = intValue;
|
||||
}
|
||||
|
||||
public String getStringValue() {
|
||||
String getStringValue() {
|
||||
return stringValue;
|
||||
}
|
||||
|
||||
public void setStringValue(String stringValue) {
|
||||
void setStringValue(String stringValue) {
|
||||
this.stringValue = stringValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RequestData{" +
|
||||
"intValue=" + intValue +
|
||||
", stringValue='" + stringValue + '\'' +
|
||||
'}';
|
||||
"intValue=" + intValue +
|
||||
", stringValue='" + stringValue + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,11 @@ package com.baeldung.netty;
|
||||
public class ResponseData {
|
||||
private int intValue;
|
||||
|
||||
public int getIntValue() {
|
||||
int getIntValue() {
|
||||
return intValue;
|
||||
}
|
||||
|
||||
public void setIntValue(int intValue) {
|
||||
void setIntValue(int intValue) {
|
||||
this.intValue = intValue;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.baeldung.netty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.codec.ReplayingDecoder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ResponseDataDecoder extends ReplayingDecoder<ResponseData> {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user