public class org.glassfish.grizzly.http.util.CookieHeaderParser extends java.lang.Object
{
private static final boolean[] isCookieOctet;
private static final boolean[] isText;
private static final byte[] EMPTY_BYTES;
private static final byte TAB_BYTE;
private static final byte SPACE_BYTE;
private static final byte QUOTE_BYTE;
private static final byte COMMA_BYTE;
private static final byte SEMICOLON_BYTE;
private static final byte EQUALS_BYTE;
private static final byte SLASH_BYTE;
private static final byte DEL_BYTE;
private static final int ARRAY_SIZE;
private static final boolean[] IS_CONTROL;
private static final boolean[] IS_SEPARATOR;
private static final boolean[] IS_TOKEN;
private void <init>()
{
org.glassfish.grizzly.http.util.CookieHeaderParser v;
v := @this: org.glassfish.grizzly.http.util.CookieHeaderParser;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public static void parseCookie(byte[], int, int, org.glassfish.grizzly.http.Cookies)
{
byte[] v, v, v, v, v;
org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer v, v, v;
boolean v, v;
org.glassfish.grizzly.http.util.DataChunk v, v, v;
org.glassfish.grizzly.http.LazyCookieState v;
org.glassfish.grizzly.http.Cookies v;
int v, v, v, v, v, v, v, v, v, v, v;
org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult v, v, v, v, v;
org.glassfish.grizzly.http.Cookie v;
v := @parameter: byte[];
v := @parameter: int;
v := @parameter: int;
v := @parameter: org.glassfish.grizzly.http.Cookies;
v = new org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
specialinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void <init>(byte[],int,int)>(v, v, v);
v = 1;
label:
if v == 0 goto label;
staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: void skipWhiteSpace(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
v = staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer readToken(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
v = null;
staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: void skipWhiteSpace(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
v = staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult skipByte(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer,byte)>(v, 61);
v = <org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult FOUND>;
if v != v goto label;
staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: void skipWhiteSpace(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
v = staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer readCookieValueRfc6265(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
if v != null goto label;
staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: void skipUntilSemiColon(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
goto label;
label:
staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: void skipWhiteSpace(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
label:
v = staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult skipByte(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer,byte)>(v, 59);
v = <org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult FOUND>;
if v == v goto label;
v = <org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult NOT_FOUND>;
if v != v goto label;
staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: void skipUntilSemiColon(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)>(v);
goto label;
label:
v = 0;
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: boolean hasRemaining()>();
if v == 0 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.Cookies: org.glassfish.grizzly.http.Cookie getNextUnusedCookie()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.Cookie: org.glassfish.grizzly.http.LazyCookieState getLazyCookieState()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.LazyCookieState: org.glassfish.grizzly.http.util.DataChunk getName()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte[] array()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int remaining()>();
v = v + v;
virtualinvoke v.<org.glassfish.grizzly.http.util.DataChunk: void setBytes(byte[],int,int)>(v, v, v);
if v != null goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.LazyCookieState: org.glassfish.grizzly.http.util.DataChunk getValue()>();
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: byte[] EMPTY_BYTES>;
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: byte[] EMPTY_BYTES>;
v = lengthof v;
virtualinvoke v.<org.glassfish.grizzly.http.util.DataChunk: void setBytes(byte[],int,int)>(v, 0, v);
goto label;
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.LazyCookieState: org.glassfish.grizzly.http.util.DataChunk getValue()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte[] array()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int remaining()>();
v = v + v;
virtualinvoke v.<org.glassfish.grizzly.http.util.DataChunk: void setBytes(byte[],int,int)>(v, v, v);
goto label;
label:
return;
}
private static void skipWhiteSpace(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)
{
org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer v;
byte v;
boolean v;
v := @parameter: org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: boolean hasRemaining()>();
if v == 0 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte get()>();
if v == 9 goto label;
if v == 32 goto label;
virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void rewind()>();
label:
return;
}
private static void skipUntilSemiColon(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)
{
org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer v;
byte v;
boolean v;
v := @parameter: org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: boolean hasRemaining()>();
if v == 0 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte get()>();
if v != 59 goto label;
label:
return;
}
private static org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult skipByte(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer, byte)
{
org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult v, v, v;
byte v, v;
org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer v;
boolean v;
v := @parameter: org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
v := @parameter: byte;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: boolean hasRemaining()>();
if v != 0 goto label;
v = <org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult EOF>;
return v;
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte get()>();
if v != v goto label;
v = <org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult FOUND>;
return v;
label:
virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void rewind()>();
v = <org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult: org.glassfish.grizzly.http.util.CookieHeaderParser$SkipResult NOT_FOUND>;
return v;
}
private static org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer readCookieValueRfc6265(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)
{
byte[] v;
org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer v, v;
short v;
byte v, v;
int v, v, v, v, v;
boolean v, v, v, v;
boolean[] v;
v := @parameter: org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
v = 0;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: boolean hasRemaining()>();
if v == 0 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte get()>();
if v != 34 goto label;
v = 1;
goto label;
label:
virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void rewind()>();
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int limit()>();
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: boolean hasRemaining()>();
if v == 0 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte get()>();
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] isCookieOctet>;
v = v & 255;
v = v[v];
if v != 0 goto label;
if v == 59 goto label;
if v == 32 goto label;
if v != 9 goto label;
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = v - 1;
virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void position(int)>(v);
goto label;
label:
if v == 0 goto label;
if v != 34 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = v - 1;
goto label;
label:
return null;
label:
v = new org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
v = v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte[] bytes>;
v = v - v;
specialinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void <init>(byte[],int,int)>(v, v, v);
return v;
}
private static org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer readToken(org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer)
{
byte[] v;
org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer v, v;
byte v;
int v, v, v, v;
boolean v, v;
v := @parameter: org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int limit()>();
label:
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: boolean hasRemaining()>();
if v == 0 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte get()>();
v = staticinvoke <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean isToken(int)>(v);
if v != 0 goto label;
v = virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: int position()>();
v = v - 1;
virtualinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void position(int)>(v);
label:
v = new org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer;
v = v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: byte[] bytes>;
v = v - v;
specialinvoke v.<org.glassfish.grizzly.http.util.CookieHeaderParser$ByteBuffer: void <init>(byte[],int,int)>(v, v, v);
return v;
}
public static boolean isToken(int)
{
boolean[] v;
int v;
java.lang.ArrayIndexOutOfBoundsException v;
boolean v;
v := @parameter: int;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_TOKEN>;
v = v[v];
label:
return v;
label:
v := @caughtexception;
return 0;
catch java.lang.ArrayIndexOutOfBoundsException from label to label with label;
}
static void <clinit>()
{
byte[] v;
int v, v, v;
boolean v, v;
boolean[] v, v, v, v, v, v, v, v, v, v, v, v, v, v;
v = newarray (boolean)[256];
<org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] isCookieOctet> = v;
v = newarray (boolean)[256];
<org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] isText> = v;
v = newarray (byte)[0];
<org.glassfish.grizzly.http.util.CookieHeaderParser: byte[] EMPTY_BYTES> = v;
v = newarray (boolean)[128];
<org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_CONTROL> = v;
v = newarray (boolean)[128];
<org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_SEPARATOR> = v;
v = newarray (boolean)[128];
<org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_TOKEN> = v;
v = 0;
label:
if v >= 256 goto label;
if v < 33 goto label;
if v == 34 goto label;
if v == 44 goto label;
if v == 59 goto label;
if v == 92 goto label;
if v != 127 goto label;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] isCookieOctet>;
v[v] = 0;
goto label;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] isCookieOctet>;
v[v] = 1;
label:
v = v + 1;
goto label;
label:
v = 0;
label:
if v >= 256 goto label;
if v < 9 goto label;
if v <= 9 goto label;
if v < 32 goto label;
label:
if v != 127 goto label;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] isText>;
v[v] = 0;
goto label;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] isText>;
v[v] = 1;
label:
v = v + 1;
goto label;
label:
v = 0;
label:
if v >= 128 goto label;
if v < 32 goto label;
if v != 127 goto label;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_CONTROL>;
v[v] = 1;
label:
if v == 40 goto label;
if v == 41 goto label;
if v == 60 goto label;
if v == 62 goto label;
if v == 64 goto label;
if v == 44 goto label;
if v == 59 goto label;
if v == 58 goto label;
if v == 92 goto label;
if v == 34 goto label;
if v == 47 goto label;
if v == 91 goto label;
if v == 93 goto label;
if v == 63 goto label;
if v == 61 goto label;
if v == 123 goto label;
if v == 125 goto label;
if v == 32 goto label;
if v != 9 goto label;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_SEPARATOR>;
v[v] = 1;
label:
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_CONTROL>;
v = v[v];
if v != 0 goto label;
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_SEPARATOR>;
v = v[v];
if v != 0 goto label;
if v >= 128 goto label;
v = <org.glassfish.grizzly.http.util.CookieHeaderParser: boolean[] IS_TOKEN>;
v[v] = 1;
label:
v = v + 1;
goto label;
label:
return;
}
}