Package org.openremote.container.web
Class WebResource
java.lang.Object
org.openremote.container.web.WebResource
- All Implemented Interfaces:
AuthContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.ws.rs.core.Application
protected jakarta.ws.rs.core.HttpHeaders
protected jakarta.servlet.http.HttpServletRequest
protected jakarta.servlet.http.HttpServletResponse
protected jakarta.ws.rs.core.SecurityContext
protected jakarta.ws.rs.core.UriInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openremote.model.Container
boolean
hasRealmRole
(String role) boolean
hasResourceRole
(String role, String resource) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openremote.container.security.AuthContext
hasResourceRoleOrIsSuperUser, isRealmAccessibleByUser, isSuperUser
-
Field Details
-
application
@Context protected jakarta.ws.rs.core.Application application -
request
@Context protected jakarta.servlet.http.HttpServletRequest request -
response
@Context protected jakarta.servlet.http.HttpServletResponse response -
uriInfo
@Context protected jakarta.ws.rs.core.UriInfo uriInfo -
httpHeaders
@Context protected jakarta.ws.rs.core.HttpHeaders httpHeaders -
securityContext
@Context protected jakarta.ws.rs.core.SecurityContext securityContext
-
-
Constructor Details
-
WebResource
public WebResource()
-
-
Method Details
-
getApplication
-
getContainer
public org.openremote.model.Container getContainer() -
getClientRemoteAddress
-
getRequestRealmName
-
isAuthenticated
public boolean isAuthenticated() -
getAuthContext
-
getAuthenticatedRealmName
- Specified by:
getAuthenticatedRealmName
in interfaceAuthContext
-
getUsername
- Specified by:
getUsername
in interfaceAuthContext
-
getUserId
- Specified by:
getUserId
in interfaceAuthContext
-
getClientId
- Specified by:
getClientId
in interfaceAuthContext
-
hasRealmRole
- Specified by:
hasRealmRole
in interfaceAuthContext
-
hasResourceRole
- Specified by:
hasResourceRole
in interfaceAuthContext
-