本文整理了Java中org.eclipse.jetty.server.Request.getUserPrincipal
方法的一些代码示例,展示了Request.getUserPrincipal
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getUserPrincipal
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:getUserPrincipal
暂无
代码示例来源:origin: jersey/jersey
@Override
public Principal getUserPrincipal() {
return request.getUserPrincipal();
}
代码示例来源:origin: org.eclipse.jetty/jetty-security
if (roleInfo.isAnyAuth() && request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
@Override
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: org.eclipse.jetty/server
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: Nextdoor/bender
@Override
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: jenkinsci/winstone
@Override
public String getRemoteUser()
{
Principal p = getUserPrincipal();
if (p == null)
return null;
return p.getName();
}
代码示例来源:origin: Nextdoor/bender
if (roleInfo.isAnyAuth() && request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.security
if (roleInfo.isAnyAuth() && request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)
代码示例来源:origin: jenkinsci/winstone
if (roleInfo.isAnyAuth() && request.getUserPrincipal() != null)
if (roleInfo.isAnyRole() && request.getUserPrincipal() != null && isUserInRole)
代码示例来源:origin: com.teradata.airlift/http-server
public static HttpRequestEvent createHttpRequestEvent(Request request, Response response, TraceTokenManager traceTokenManager, long currentTimeInMillis)
Principal principal = request.getUserPrincipal();
if (principal != null) {
user = principal.getName();
代码示例来源:origin: com.proofpoint.platform/http-server
Principal principal = request.getUserPrincipal();
if (principal != null) {
user = principal.getName();
代码示例来源:origin: io.airlift/http-server
Principal principal = request.getUserPrincipal();
if (principal != null) {
user = principal.getName();
代码示例来源:origin: com.teradata.airlift/http-server
when(request.getAttribute(TimingFilter.FIRST_BYTE_TIME)).thenReturn(timestamp + timeToFirstByte);
when(request.getRequestURI()).thenReturn(uri.toString());
when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);
代码示例来源:origin: io.airlift/http-server
when(request.getAttribute(TimingFilter.FIRST_BYTE_TIME)).thenReturn(timestamp + timeToFirstByte);
when(request.getRequestURI()).thenReturn(uri.toString());
when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);
内容来源于网络,如有侵权,请联系作者删除!