423118 - ServletUpgradeRequest.getUserPrincipal() does not work
+ Deprecating ServletUpgradeRequest.getPrincipal() + Adding proper implementation for ServletUpgradeRequest.getUserPrincipal()
This commit is contained in:
parent
1eac013485
commit
ebd0ad90e0
|
@ -165,10 +165,22 @@ public class ServletUpgradeRequest extends UpgradeRequest
|
|||
return new InetSocketAddress(req.getLocalAddr(),req.getLocalPort());
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #getUserPrincipal()} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public Principal getPrincipal()
|
||||
{
|
||||
return req.getUserPrincipal();
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent to {@link HttpServletRequest#getUserPrincipal()}
|
||||
*/
|
||||
public Principal getUserPrincipal()
|
||||
{
|
||||
return req.getUserPrincipal();
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent to {@link HttpServletRequest#getRemoteAddr()}
|
||||
|
|
Loading…
Reference in New Issue