public class io.netty.handler.codec.rtsp.RtspDecoder extends io.netty.handler.codec.http.HttpObjectDecoder
{
private static final io.netty.handler.codec.http.HttpResponseStatus UNKNOWN_STATUS;
private boolean isDecodingRequest;
private static final java.util.regex.Pattern versionPattern;
public static final int DEFAULT_MAX_CONTENT_LENGTH;
public void <init>()
{
io.netty.handler.codec.rtsp.RtspDecoder v;
v := @this: io.netty.handler.codec.rtsp.RtspDecoder;
specialinvoke v.<io.netty.handler.codec.rtsp.RtspDecoder: void <init>(int,int,int)>(4096, 8192, 8192);
return;
}
public void <init>(int, int, int)
{
io.netty.handler.codec.rtsp.RtspDecoder v;
int v, v, v, v;
v := @this: io.netty.handler.codec.rtsp.RtspDecoder;
v := @parameter: int;
v := @parameter: int;
v := @parameter: int;
v = v * 2;
specialinvoke v.<io.netty.handler.codec.http.HttpObjectDecoder: void <init>(int,int,int,boolean)>(v, v, v, 0);
return;
}
public void <init>(int, int, int, boolean)
{
io.netty.handler.codec.rtsp.RtspDecoder v;
int v, v, v, v;
boolean v;
v := @this: io.netty.handler.codec.rtsp.RtspDecoder;
v := @parameter: int;
v := @parameter: int;
v := @parameter: int;
v := @parameter: boolean;
v = v * 2;
specialinvoke v.<io.netty.handler.codec.http.HttpObjectDecoder: void <init>(int,int,int,boolean,boolean)>(v, v, v, 0, v);
return;
}
protected io.netty.handler.codec.http.HttpMessage createMessage(java.lang.String[]) throws java.lang.Exception
{
io.netty.handler.codec.http.HttpVersion v, v;
java.lang.String[] v;
io.netty.handler.codec.http.DefaultHttpRequest v;
java.util.regex.Matcher v;
int v;
java.lang.String v, v, v, v, v, v, v;
boolean v, v, v;
io.netty.handler.codec.http.HttpMethod v;
io.netty.handler.codec.http.HttpResponseStatus v;
io.netty.handler.codec.rtsp.RtspDecoder v;
io.netty.handler.codec.http.DefaultHttpResponse v;
java.util.regex.Pattern v;
v := @this: io.netty.handler.codec.rtsp.RtspDecoder;
v := @parameter: java.lang.String[];
v = <io.netty.handler.codec.rtsp.RtspDecoder: java.util.regex.Pattern versionPattern>;
v = v[0];
v = virtualinvoke v.<java.util.regex.Pattern: java.util.regex.Matcher matcher(java.lang.CharSequence)>(v);
v = virtualinvoke v.<java.util.regex.Matcher: boolean matches()>();
if v == 0 goto label;
v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean isDecodingRequest> = 0;
v = new io.netty.handler.codec.http.DefaultHttpResponse;
v = v[0];
v = staticinvoke <io.netty.handler.codec.rtsp.RtspVersions: io.netty.handler.codec.http.HttpVersion valueOf(java.lang.String)>(v);
v = new io.netty.handler.codec.http.HttpResponseStatus;
v = v[1];
v = staticinvoke <java.lang.Integer: int parseInt(java.lang.String)>(v);
v = v[2];
specialinvoke v.<io.netty.handler.codec.http.HttpResponseStatus: void <init>(int,java.lang.String)>(v, v);
v = v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean validateHeaders>;
specialinvoke v.<io.netty.handler.codec.http.DefaultHttpResponse: void <init>(io.netty.handler.codec.http.HttpVersion,io.netty.handler.codec.http.HttpResponseStatus,boolean)>(v, v, v);
return v;
label:
v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean isDecodingRequest> = 1;
v = new io.netty.handler.codec.http.DefaultHttpRequest;
v = v[2];
v = staticinvoke <io.netty.handler.codec.rtsp.RtspVersions: io.netty.handler.codec.http.HttpVersion valueOf(java.lang.String)>(v);
v = v[0];
v = staticinvoke <io.netty.handler.codec.rtsp.RtspMethods: io.netty.handler.codec.http.HttpMethod valueOf(java.lang.String)>(v);
v = v[1];
v = v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean validateHeaders>;
specialinvoke v.<io.netty.handler.codec.http.DefaultHttpRequest: void <init>(io.netty.handler.codec.http.HttpVersion,io.netty.handler.codec.http.HttpMethod,java.lang.String,boolean)>(v, v, v, v);
return v;
}
protected boolean isContentAlwaysEmpty(io.netty.handler.codec.http.HttpMessage)
{
io.netty.handler.codec.http.HttpHeaders v;
io.netty.handler.codec.rtsp.RtspDecoder v;
io.netty.handler.codec.http.HttpMessage v;
io.netty.util.AsciiString v;
boolean v, v, v;
v := @this: io.netty.handler.codec.rtsp.RtspDecoder;
v := @parameter: io.netty.handler.codec.http.HttpMessage;
v = specialinvoke v.<io.netty.handler.codec.http.HttpObjectDecoder: boolean isContentAlwaysEmpty(io.netty.handler.codec.http.HttpMessage)>(v);
if v != 0 goto label;
v = interfaceinvoke v.<io.netty.handler.codec.http.HttpMessage: io.netty.handler.codec.http.HttpHeaders headers()>();
v = <io.netty.handler.codec.rtsp.RtspHeaderNames: io.netty.util.AsciiString CONTENT_LENGTH>;
v = virtualinvoke v.<io.netty.handler.codec.http.HttpHeaders: boolean contains(java.lang.CharSequence)>(v);
if v != 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
protected io.netty.handler.codec.http.HttpMessage createInvalidMessage()
{
io.netty.handler.codec.http.HttpVersion v, v;
io.netty.handler.codec.http.DefaultFullHttpRequest v;
io.netty.handler.codec.http.HttpMethod v;
io.netty.handler.codec.http.HttpResponseStatus v;
io.netty.handler.codec.rtsp.RtspDecoder v;
io.netty.handler.codec.http.DefaultFullHttpResponse v;
boolean v, v, v;
v := @this: io.netty.handler.codec.rtsp.RtspDecoder;
v = v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean isDecodingRequest>;
if v == 0 goto label;
v = new io.netty.handler.codec.http.DefaultFullHttpRequest;
v = <io.netty.handler.codec.rtsp.RtspVersions: io.netty.handler.codec.http.HttpVersion RTSP_1_0>;
v = <io.netty.handler.codec.rtsp.RtspMethods: io.netty.handler.codec.http.HttpMethod OPTIONS>;
v = v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean validateHeaders>;
specialinvoke v.<io.netty.handler.codec.http.DefaultFullHttpRequest: void <init>(io.netty.handler.codec.http.HttpVersion,io.netty.handler.codec.http.HttpMethod,java.lang.String,boolean)>(v, v, "/bad-request", v);
return v;
label:
v = new io.netty.handler.codec.http.DefaultFullHttpResponse;
v = <io.netty.handler.codec.rtsp.RtspVersions: io.netty.handler.codec.http.HttpVersion RTSP_1_0>;
v = <io.netty.handler.codec.rtsp.RtspDecoder: io.netty.handler.codec.http.HttpResponseStatus UNKNOWN_STATUS>;
v = v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean validateHeaders>;
specialinvoke v.<io.netty.handler.codec.http.DefaultFullHttpResponse: void <init>(io.netty.handler.codec.http.HttpVersion,io.netty.handler.codec.http.HttpResponseStatus,boolean)>(v, v, v);
return v;
}
protected boolean isDecodingRequest()
{
io.netty.handler.codec.rtsp.RtspDecoder v;
boolean v;
v := @this: io.netty.handler.codec.rtsp.RtspDecoder;
v = v.<io.netty.handler.codec.rtsp.RtspDecoder: boolean isDecodingRequest>;
return v;
}
static void <clinit>()
{
io.netty.handler.codec.http.HttpResponseStatus v;
java.util.regex.Pattern v;
v = new io.netty.handler.codec.http.HttpResponseStatus;
specialinvoke v.<io.netty.handler.codec.http.HttpResponseStatus: void <init>(int,java.lang.String)>(999, "Unknown");
<io.netty.handler.codec.rtsp.RtspDecoder: io.netty.handler.codec.http.HttpResponseStatus UNKNOWN_STATUS> = v;
v = staticinvoke <java.util.regex.Pattern: java.util.regex.Pattern compile(java.lang.String)>("RTSP/\\d\\.\\d");
<io.netty.handler.codec.rtsp.RtspDecoder: java.util.regex.Pattern versionPattern> = v;
return;
}
}