Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 82885d5

Browse files
added getter for UserConnection
1 parent b6c7fa0 commit 82885d5

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,28 @@ final UserConnection user = new UserConnectionImpl(channel, true);
6060

6161
new ProtocolPipelineImpl(user);
6262

63-
channel.pipeline().addLast(new VLBPipeline(user));
63+
channel.pipeline().addLast(new VLBPipeline(user) {
64+
65+
@Override
66+
public String getDecoderHandlerName() {
67+
return "decoder";
68+
}
69+
70+
@Override
71+
public String getEncoderHandlerName() {
72+
return "encoder";
73+
}
74+
75+
@Override
76+
public String getDecompressionHandlerName() {
77+
return "decompress";
78+
}
79+
80+
@Override
81+
public String getCompressionHandlerName() {
82+
return "compress";
83+
}
84+
});
6485
```
6586
In case your platform has compression, you can call the **CompressionReorderEvent** at the end of the compression code to correct the compression.
6687
```java

src/main/java/de/florianmichael/vialoadingbase/netty/VLBPipeline.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,14 @@ public VLBViaEncodeHandler createVLBViaEncodeHandler() {
7070
}
7171

7272
public abstract String getDecoderHandlerName();
73+
7374
public abstract String getEncoderHandlerName();
7475

7576
public abstract String getDecompressionHandlerName();
77+
7678
public abstract String getCompressionHandlerName();
79+
80+
public UserConnection getInfo() {
81+
return info;
82+
}
7783
}

0 commit comments

Comments
 (0)