public abstract class ProxiedResource extends RestResource
| Modifier and Type | Field and Description |
|---|---|
protected String |
authenticationToken |
protected NodeService |
nodeService |
protected RemoteInterfaceProvider |
remoteInterfaceProvider |
userService| Modifier | Constructor and Description |
|---|---|
protected |
ProxiedResource(javax.ws.rs.core.HttpHeaders httpHeaders,
NodeService nodeService,
RemoteInterfaceProvider remoteInterfaceProvider,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
protected <RemoteInterfaceType> |
createRemoteInterfaceProvider(Class<RemoteInterfaceType> interfaceClass) |
protected <RemoteInterfaceType,RemoteCallResponseType> |
getForAllNodes(Function<RemoteInterfaceType,retrofit2.Call<RemoteCallResponseType>> fn,
Function<String,Optional<RemoteInterfaceType>> interfaceProvider) |
protected <RemoteInterfaceType,FinalResponseType,RemoteCallResponseType> |
getForAllNodes(Function<RemoteInterfaceType,retrofit2.Call<RemoteCallResponseType>> fn,
Function<String,Optional<RemoteInterfaceType>> interfaceProvider,
Function<RemoteCallResponseType,FinalResponseType> transformer) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrintprotected final String authenticationToken
protected final NodeService nodeService
protected final RemoteInterfaceProvider remoteInterfaceProvider
protected ProxiedResource(@Context
javax.ws.rs.core.HttpHeaders httpHeaders,
NodeService nodeService,
RemoteInterfaceProvider remoteInterfaceProvider,
ExecutorService executorService)
protected <RemoteInterfaceType,RemoteCallResponseType> Map<String,Optional<RemoteCallResponseType>> getForAllNodes(Function<RemoteInterfaceType,retrofit2.Call<RemoteCallResponseType>> fn, Function<String,Optional<RemoteInterfaceType>> interfaceProvider)
protected <RemoteInterfaceType,FinalResponseType,RemoteCallResponseType> Map<String,Optional<FinalResponseType>> getForAllNodes(Function<RemoteInterfaceType,retrofit2.Call<RemoteCallResponseType>> fn, Function<String,Optional<RemoteInterfaceType>> interfaceProvider, Function<RemoteCallResponseType,FinalResponseType> transformer)
Copyright © 2012–2017 Graylog, Inc.. All rights reserved.