public class org.apache.shiro.web.servlet.ShiroHttpServletRequest extends javax.servlet.http.HttpServletRequestWrapper
{
public static final java.lang.String COOKIE_SESSION_ID_SOURCE;
public static final java.lang.String URL_SESSION_ID_SOURCE;
public static final java.lang.String REFERENCED_SESSION_ID;
public static final java.lang.String REFERENCED_SESSION_ID_IS_VALID;
public static final java.lang.String REFERENCED_SESSION_IS_NEW;
public static final java.lang.String REFERENCED_SESSION_ID_SOURCE;
public static final java.lang.String IDENTITY_REMOVED_KEY;
public static final java.lang.String SESSION_ID_URL_REWRITING_ENABLED;
protected javax.servlet.ServletContext servletContext;
protected javax.servlet.http.HttpSession session;
protected boolean httpSessions;
public void <init>(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext, boolean)
{
javax.servlet.http.HttpServletRequest v;
javax.servlet.ServletContext v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v := @parameter: javax.servlet.http.HttpServletRequest;
v := @parameter: javax.servlet.ServletContext;
v := @parameter: boolean;
specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: void <init>(javax.servlet.http.HttpServletRequest)>(v);
v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.ServletContext servletContext> = null;
v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.http.HttpSession session> = null;
v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean httpSessions> = 1;
v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.ServletContext servletContext> = v;
v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean httpSessions> = v;
return;
}
public boolean isHttpSessions()
{
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean httpSessions>;
return v;
}
public java.lang.String getRemoteUser()
{
java.lang.Object v;
java.lang.String v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v, v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.Object getSubjectPrincipal()>();
if v == null goto label;
v = v instanceof java.lang.String;
if v == 0 goto label;
return v;
label:
v = v instanceof java.security.Principal;
if v == 0 goto label;
v = interfaceinvoke v.<java.security.Principal: java.lang.String getName()>();
goto label;
label:
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
goto label;
label:
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: java.lang.String getRemoteUser()>();
label:
return v;
}
protected org.apache.shiro.subject.Subject getSubject()
{
org.apache.shiro.subject.Subject v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = staticinvoke <org.apache.shiro.SecurityUtils: org.apache.shiro.subject.Subject getSubject()>();
return v;
}
protected java.lang.Object getSubjectPrincipal()
{
java.lang.Object v;
org.apache.shiro.subject.Subject v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = null;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: org.apache.shiro.subject.Subject getSubject()>();
if v == null goto label;
v = interfaceinvoke v.<org.apache.shiro.subject.Subject: java.lang.Object getPrincipal()>();
label:
return v;
}
public boolean isUserInRole(java.lang.String)
{
org.apache.shiro.subject.Subject v;
java.lang.String v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v, v, v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v := @parameter: java.lang.String;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: org.apache.shiro.subject.Subject getSubject()>();
if v == null goto label;
v = interfaceinvoke v.<org.apache.shiro.subject.Subject: boolean hasRole(java.lang.String)>(v);
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = v;
if v != 0 goto label;
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: boolean isUserInRole(java.lang.String)>(v);
label:
return v;
}
public java.security.Principal getUserPrincipal()
{
org.apache.shiro.web.servlet.ShiroHttpServletRequest$ObjectPrincipal v;
java.lang.Object v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.Object getSubjectPrincipal()>();
if v == null goto label;
v = v instanceof java.security.Principal;
if v != 0 goto label;
v = new org.apache.shiro.web.servlet.ShiroHttpServletRequest$ObjectPrincipal;
specialinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest$ObjectPrincipal: void <init>(org.apache.shiro.web.servlet.ShiroHttpServletRequest,java.lang.Object)>(v, v);
v = v;
goto label;
label:
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: java.security.Principal getUserPrincipal()>();
label:
return v;
}
public java.lang.String getRequestedSessionId()
{
java.lang.Object v;
java.lang.String v, v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = null;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean isHttpSessions()>();
if v == 0 goto label;
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: java.lang.String getRequestedSessionId()>();
goto label;
label:
v = <org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_ID>;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.Object getAttribute(java.lang.String)>(v);
if v == null goto label;
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
label:
return v;
}
public javax.servlet.http.HttpSession getSession(boolean)
{
org.apache.shiro.session.Session v, v;
org.apache.shiro.subject.Subject v, v;
org.apache.shiro.web.servlet.ShiroHttpSession v;
java.lang.Boolean v;
java.lang.String v;
boolean v, v, v, v, v;
javax.servlet.http.HttpSession v, v, v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
org.apache.shiro.subject.support.DisabledSessionException v;
javax.servlet.ServletContext v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v := @parameter: boolean;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean isHttpSessions()>();
if v == 0 goto label;
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: javax.servlet.http.HttpSession getSession(boolean)>(0);
if v != null goto label;
if v == 0 goto label;
v = staticinvoke <org.apache.shiro.web.util.WebUtils: boolean _isSessionCreationEnabled(javax.servlet.ServletRequest)>(v);
if v == 0 goto label;
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: javax.servlet.http.HttpSession getSession(boolean)>(v);
goto label;
label:
v = specialinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: org.apache.shiro.subject.support.DisabledSessionException newNoSessionCreationException()>();
throw v;
label:
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: org.apache.shiro.subject.Subject getSubject()>();
v = interfaceinvoke v.<org.apache.shiro.subject.Subject: org.apache.shiro.session.Session getSession(boolean)>(0);
if v == null goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = v;
v = v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.http.HttpSession session>;
if v == null goto label;
if v != 0 goto label;
label:
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: org.apache.shiro.subject.Subject getSubject()>();
v = interfaceinvoke v.<org.apache.shiro.subject.Subject: org.apache.shiro.session.Session getSession(boolean)>(v);
if v == null goto label;
v = new org.apache.shiro.web.servlet.ShiroHttpSession;
v = v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.ServletContext servletContext>;
specialinvoke v.<org.apache.shiro.web.servlet.ShiroHttpSession: void <init>(org.apache.shiro.session.Session,javax.servlet.http.HttpServletRequest,javax.servlet.ServletContext)>(v, v, v);
v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.http.HttpSession session> = v;
if v != 0 goto label;
v = <org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_IS_NEW>;
v = <java.lang.Boolean: java.lang.Boolean TRUE>;
virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: void setAttribute(java.lang.String,java.lang.Object)>(v, v);
goto label;
label:
v = v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.http.HttpSession session>;
if v == null goto label;
v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.http.HttpSession session> = null;
label:
v = v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.http.HttpSession session>;
label:
return v;
}
private org.apache.shiro.subject.support.DisabledSessionException newNoSessionCreationException()
{
org.apache.shiro.subject.support.DisabledSessionException v;
java.lang.Class v;
java.lang.String v, v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = class "Lorg/apache/shiro/subject/support/DisabledSessionException;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Session creation has been disabled for the current request.  This exception indicates that there is either a programming error (using a session when it should never be used) or that Shiro\'s configuration needs to be adjusted to allow Sessions to be created for the current request.  See the \u JavaDoc for more.");
v = new org.apache.shiro.subject.support.DisabledSessionException;
specialinvoke v.<org.apache.shiro.subject.support.DisabledSessionException: void <init>(java.lang.String)>(v);
return v;
}
public javax.servlet.http.HttpSession getSession()
{
javax.servlet.http.HttpSession v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: javax.servlet.http.HttpSession getSession(boolean)>(1);
return v;
}
public boolean isRequestedSessionIdValid()
{
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
java.lang.Boolean v;
java.lang.Object v;
java.lang.String v;
boolean v, v, v, v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean isHttpSessions()>();
if v == 0 goto label;
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: boolean isRequestedSessionIdValid()>();
return v;
label:
v = <org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_ID_IS_VALID>;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.Object getAttribute(java.lang.String)>(v);
if v == null goto label;
v = <java.lang.Boolean: java.lang.Boolean TRUE>;
v = virtualinvoke v.<java.lang.Boolean: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public boolean isRequestedSessionIdFromCookie()
{
java.lang.Object v;
java.lang.String v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v, v, v, v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean isHttpSessions()>();
if v == 0 goto label;
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: boolean isRequestedSessionIdFromCookie()>();
return v;
label:
v = <org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_ID_SOURCE>;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.Object getAttribute(java.lang.String)>(v);
if v == null goto label;
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>("cookie");
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public boolean isRequestedSessionIdFromURL()
{
java.lang.Object v;
java.lang.String v;
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v, v, v, v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean isHttpSessions()>();
if v == 0 goto label;
v = specialinvoke v.<javax.servlet.http.HttpServletRequestWrapper: boolean isRequestedSessionIdFromURL()>();
return v;
label:
v = <org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_ID_SOURCE>;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.Object getAttribute(java.lang.String)>(v);
if v == null goto label;
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>("url");
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public boolean isRequestedSessionIdFromUrl()
{
org.apache.shiro.web.servlet.ShiroHttpServletRequest v;
boolean v;
v := @this: org.apache.shiro.web.servlet.ShiroHttpServletRequest;
v = virtualinvoke v.<org.apache.shiro.web.servlet.ShiroHttpServletRequest: boolean isRequestedSessionIdFromURL()>();
return v;
}
static void <clinit>()
{
java.lang.String v, v, v, v, v, v, v, v, v, v, v, v;
java.lang.Class v, v, v, v, v, v;
v = class "Lorg/apache/shiro/web/servlet/ShiroHttpServletRequest;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001_REQUESTED_SESSION_ID");
<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_ID> = v;
v = class "Lorg/apache/shiro/web/servlet/ShiroHttpServletRequest;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001_REQUESTED_SESSION_ID_VALID");
<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_ID_IS_VALID> = v;
v = class "Lorg/apache/shiro/web/servlet/ShiroHttpServletRequest;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001_REFERENCED_SESSION_IS_NEW");
<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_IS_NEW> = v;
v = class "Lorg/apache/shiro/web/servlet/ShiroHttpServletRequest;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001REFERENCED_SESSION_ID_SOURCE");
<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String REFERENCED_SESSION_ID_SOURCE> = v;
v = class "Lorg/apache/shiro/web/servlet/ShiroHttpServletRequest;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001_IDENTITY_REMOVED_KEY");
<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String IDENTITY_REMOVED_KEY> = v;
v = class "Lorg/apache/shiro/web/servlet/ShiroHttpServletRequest;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001_SESSION_ID_URL_REWRITING_ENABLED");
<org.apache.shiro.web.servlet.ShiroHttpServletRequest: java.lang.String SESSION_ID_URL_REWRITING_ENABLED> = v;
return;
}
}