Package org.openremote.container.web
Class WebResource
java.lang.Object
org.openremote.container.web.WebResource
- All Implemented Interfaces:
AuthContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.ws.rs.core.Applicationprotected javax.ws.rs.core.HttpHeadersprotected javax.servlet.http.HttpServletRequestprotected javax.servlet.http.HttpServletResponseprotected javax.ws.rs.core.SecurityContextprotected javax.ws.rs.core.UriInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openremote.model.ContainerbooleanhasRealmRole(String role) booleanhasResourceRole(String role, String resource) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openremote.container.security.AuthContext
hasResourceRoleOrIsSuperUser, isRealmAccessibleByUser, isSuperUser
-
Field Details
-
application
@Context protected javax.ws.rs.core.Application application -
request
@Context protected javax.servlet.http.HttpServletRequest request -
response
@Context protected javax.servlet.http.HttpServletResponse response -
uriInfo
@Context protected javax.ws.rs.core.UriInfo uriInfo -
httpHeaders
@Context protected javax.ws.rs.core.HttpHeaders httpHeaders -
securityContext
@Context protected javax.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:
getAuthenticatedRealmNamein interfaceAuthContext
-
getUsername
- Specified by:
getUsernamein interfaceAuthContext
-
getUserId
- Specified by:
getUserIdin interfaceAuthContext
-
getClientId
- Specified by:
getClientIdin interfaceAuthContext
-
hasRealmRole
- Specified by:
hasRealmRolein interfaceAuthContext
-
hasResourceRole
- Specified by:
hasResourceRolein interfaceAuthContext
-