package ru.gravit.launchserver.websocket; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.util.CharsetUtil; public final class WebSocketServerIndexPage { private static final String NEWLINE = "\r\n"; public static ByteBuf getContent(String webSocketLocation) { return Unpooled.copiedBuffer( "Web Socket Test" + NEWLINE + "" + NEWLINE + "" + NEWLINE + "
" + NEWLINE + "" + "" + NEWLINE + "

Output

" + NEWLINE + "" + NEWLINE + "
" + NEWLINE + "" + NEWLINE + "" + NEWLINE, CharsetUtil.US_ASCII); } private WebSocketServerIndexPage() { // Unused } }