Example usage for io.netty.handler.codec.rtsp RtspVersions valueOf

List of usage examples for io.netty.handler.codec.rtsp RtspVersions valueOf

Introduction

In this page you can find the example usage for io.netty.handler.codec.rtsp RtspVersions valueOf.

Prototype

public static HttpVersion valueOf(String text) 

Source Link

Document

Returns an existing or new HttpVersion instance which matches to the specified RTSP version string.

Usage

From source file:com.sengled.cloud.mediaserver.rtsp.codec.RtspRequestDecoder.java

License:Apache License

@Override
protected HttpMessage createMessage(String[] initialLine) throws Exception {
    return new DefaultHttpRequest(RtspVersions.valueOf(initialLine[2]), RtspMethods.valueOf(initialLine[0]),
            initialLine[1], validateHeaders);
}

From source file:com.sengled.cloud.mediaserver.rtsp.codec.RtspResponseDecoder.java

License:Apache License

@Override
protected HttpMessage createMessage(String[] initialLine) throws Exception {
    return new DefaultHttpResponse(RtspVersions.valueOf(initialLine[0]),
            new HttpResponseStatus(Integer.parseInt(initialLine[1]), initialLine[2]), validateHeaders);
}