public class AuditComponent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUDIT_HEADER |
static java.lang.String |
AUDIT_HEADER_INTERNAL |
static java.lang.String |
COLLECTION_NAME |
static java.util.Set<java.lang.String> |
HEADER_BLACKLIST |
static java.lang.String |
HOST |
static java.lang.String |
PORT |
static java.lang.String |
REQUEST_ENTITY |
static java.lang.String |
REQUEST_HEADER_PREFIX |
static java.lang.String |
REQUEST_MEDIA_TYPE |
static java.lang.String |
REQUEST_METHOD |
static java.lang.String |
REQUEST_PARAM_PREFIX |
static java.lang.String |
REQUEST_PATH |
static java.lang.String |
REQUEST_URI |
static java.lang.String |
RESPONSE_ENTITY |
static java.lang.String |
RESPONSE_ENTITY_TYPE_ACTUAL |
static java.lang.String |
RESPONSE_ENTITY_TYPE_DECLARED |
static java.lang.String |
RESPONSE_HEADER_PREFIX |
static java.lang.String |
RESPONSE_MEDIA_TYPE |
static java.lang.String |
RESPONSE_STATUS |
static java.lang.String |
TIME |
static java.lang.String |
TIMESTAMP |
Constructor and Description |
---|
AuditComponent(SolrClientFactory solrClientFactory,
CollectionComponent collectionComponent,
CollectionManager collectionManager,
ConfigurationComponent configurationComponent,
CuratorComponent curatorComponent,
SearchClusterStore searchClusterStore,
com.lucidworks.apollo.links.LinkManager linkManager) |
Modifier and Type | Method and Description |
---|---|
void |
apply() |
SolrInputDocument |
convertToDoc(UriInfo uriInfo,
java.util.Optional<byte[]> requestEntity,
ContainerRequest request,
long requestTimestamp,
java.util.Optional<byte[]> responseEntity,
ContainerResponse response) |
boolean |
enabled() |
void |
init(CollectionComponent collectionComponent,
SearchClusterComponent.DefaultSolrClient defaultSolrClient,
com.lucidworks.apollo.links.LinkManager linkManager) |
boolean |
internalEnabled() |
void |
log(UriInfo uriInfo,
java.util.Optional<byte[]> requestEntity,
ContainerRequest request,
long requestTimestamp,
java.util.Optional<byte[]> responseEntity,
ContainerResponse response) |
public static final java.lang.String COLLECTION_NAME
public static final java.lang.String AUDIT_HEADER
public static final java.lang.String AUDIT_HEADER_INTERNAL
public static final java.util.Set<java.lang.String> HEADER_BLACKLIST
public static final java.lang.String HOST
public static final java.lang.String PORT
public static final java.lang.String TIMESTAMP
public static final java.lang.String TIME
public static final java.lang.String REQUEST_METHOD
public static final java.lang.String REQUEST_PATH
public static final java.lang.String REQUEST_URI
public static final java.lang.String REQUEST_PARAM_PREFIX
public static final java.lang.String REQUEST_HEADER_PREFIX
public static final java.lang.String REQUEST_MEDIA_TYPE
public static final java.lang.String REQUEST_ENTITY
public static final java.lang.String RESPONSE_STATUS
public static final java.lang.String RESPONSE_ENTITY_TYPE_DECLARED
public static final java.lang.String RESPONSE_ENTITY_TYPE_ACTUAL
public static final java.lang.String RESPONSE_MEDIA_TYPE
public static final java.lang.String RESPONSE_HEADER_PREFIX
public static final java.lang.String RESPONSE_ENTITY
public AuditComponent(SolrClientFactory solrClientFactory, CollectionComponent collectionComponent, CollectionManager collectionManager, ConfigurationComponent configurationComponent, CuratorComponent curatorComponent, SearchClusterStore searchClusterStore, com.lucidworks.apollo.links.LinkManager linkManager)
@WhenReady public void init(CollectionComponent collectionComponent, SearchClusterComponent.DefaultSolrClient defaultSolrClient, com.lucidworks.apollo.links.LinkManager linkManager) throws java.lang.Exception, com.lucidworks.apollo.common.error.RESTError
java.lang.Exception
com.lucidworks.apollo.common.error.RESTError
public void apply() throws java.lang.Exception, com.lucidworks.apollo.common.error.RESTError
java.lang.Exception
com.lucidworks.apollo.common.error.RESTError
public boolean enabled()
public boolean internalEnabled()
public void log(UriInfo uriInfo, java.util.Optional<byte[]> requestEntity, ContainerRequest request, long requestTimestamp, java.util.Optional<byte[]> responseEntity, ContainerResponse response)
public SolrInputDocument convertToDoc(UriInfo uriInfo, java.util.Optional<byte[]> requestEntity, ContainerRequest request, long requestTimestamp, java.util.Optional<byte[]> responseEntity, ContainerResponse response)