@ManagedResource(description="Managed FcrepoEndpoint")
@UriEndpoint(scheme="fcrepo",
title="Fedora Commons Repository",
syntax="fcrepo:host:port/path")
public class FcrepoEndpoint
extends org.apache.camel.impl.DefaultEndpoint
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HTTPS_PORT |
| Constructor and Description |
|---|
FcrepoEndpoint(String uri,
String remaining,
FcrepoComponent component,
FcrepoConfiguration configuration)
Create a FcrepoEndpoint with a uri, path and component
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor)
This component does not implement a consumer endpoint.
|
org.apache.camel.Producer |
createProducer()
Create a producer endpoint.
|
org.springframework.transaction.support.TransactionTemplate |
createTransactionTemplate()
Create a template for use in transactions
|
String |
getAccept()
accept getter
|
String |
getAuthHost()
authHost getter
|
String |
getAuthPassword()
authPassword getter
|
String |
getAuthUsername()
authUsername getter
|
String |
getBaseUrl()
baseUrl getter
|
String |
getBaseUrlWithScheme()
Get the repository baseUrl with a full scheme.
|
FcrepoConfiguration |
getConfiguration()
configuration getter
|
String |
getContentType()
contentType getter
|
Boolean |
getFixity()
fixity getter
|
Boolean |
getMetadata()
metadata getter
|
String |
getPreferInclude()
preferInclude getter
|
String |
getPreferOmit()
preferOmit getter
|
Boolean |
getThrowExceptionOnFailure()
throwExceptionOnFailure getter
|
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
transactionManager getter
|
boolean |
isSingleton()
Define the component as a singleton
|
void |
setAccept(String type)
accept setter
|
void |
setAuthHost(String host)
authHost setter
|
void |
setAuthPassword(String password)
authPassword setter
|
void |
setAuthUsername(String username)
authUsername setter
|
void |
setBaseUrl(String url)
baseUrl setter
|
void |
setConfiguration(FcrepoConfiguration config)
configuration setter
|
void |
setContentType(String type)
contentType setter
|
void |
setFixity(Boolean fixity)
fixity setter
|
void |
setMetadata(Boolean metadata)
metadata setter
|
void |
setPreferInclude(String include)
preferInclude setter
|
void |
setPreferOmit(String omit)
preferOmit setter
|
void |
setThrowExceptionOnFailure(Boolean throwOnFailure)
throwExceptionOnFailure setter
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager setter
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic static final int DEFAULT_HTTPS_PORT
public FcrepoEndpoint(String uri, String remaining, FcrepoComponent component, FcrepoConfiguration configuration)
uri - the endpoint uri (without path values)remaining - any path values on the endpoint uricomponent - an existing component valueconfiguration - configuration settings for this endpointpublic org.apache.camel.Producer createProducer()
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
public boolean isSingleton()
public org.springframework.transaction.support.TransactionTemplate createTransactionTemplate()
public String getBaseUrlWithScheme()
public FcrepoConfiguration getConfiguration()
public void setConfiguration(FcrepoConfiguration config)
config - The FcrepoConfigurationpublic void setBaseUrl(String url)
url - the fcrepo base urlpublic String getBaseUrl()
@ManagedAttribute(description="Transaction Manager") public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager - the transaction manager for this endpoint@ManagedAttribute(description="Transaction Manager") public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
@ManagedAttribute(description="Accept: Header") public void setAccept(String type)
type - the mime-type used with Accept headers@ManagedAttribute(description="Accept: Header") public String getAccept()
@ManagedAttribute(description="Content-Type: Header") public void setContentType(String type)
type - the mime-type used with Content-Type headers@ManagedAttribute(description="Content-Type: Header") public String getContentType()
@ManagedAttribute(description="Username for authentication") public void setAuthUsername(String username)
username - used for repository authentication@ManagedAttribute(description="Username for authentication") public String getAuthUsername()
@ManagedAttribute(description="Password for authentication") public void setAuthPassword(String password)
password - used for repository authentication@ManagedAttribute(description="Password for authentication") public String getAuthPassword()
@ManagedAttribute(description="Hostname for authentication") public void setAuthHost(String host)
host - realm used for repository authentication@ManagedAttribute(description="Hostname for authentication") public String getAuthHost()
@ManagedAttribute(description="Whether to retrieve the /fcr:metadata endpoint for Binary nodes") public void setMetadata(Boolean metadata)
metadata - whether to retrieve rdf metadata for non-rdf nodes@ManagedAttribute(description="Whether to retrieve the /fcr:metadata endpoint for Binary nodes") public Boolean getMetadata()
@ManagedAttribute(description="Whether HTTP response errors should throw an exception") public void setThrowExceptionOnFailure(Boolean throwOnFailure)
throwOnFailure - whether HTTP error codes throw exceptions@ManagedAttribute(description="Whether HTTP response errors should throw an exception") public Boolean getThrowExceptionOnFailure()
@ManagedAttribute(description="Whether to access the /fcr:fixity endpoint for a resource") public void setFixity(Boolean fixity)
fixity - whether to access the /fcr:fixity endpoint for a resource@ManagedAttribute(description="Whether to access the /fcr:fixity endpoint for a resource") public Boolean getFixity()
@ManagedAttribute(description="Whether to include a Prefer: return=representation; include=\"URI\" header") public void setPreferInclude(String include)
include - the URI(s) that populate the include section in a Prefer header@ManagedAttribute(description="Whether to include a Prefer: return=representation; include=\"URI\" header") public String getPreferInclude()
@ManagedAttribute(description="Whether to include a Prefer: return=representation; omit=\"URI\" header") public void setPreferOmit(String omit)
omit - the URI(s) that populate the omit section in a Prefer header@ManagedAttribute(description="Whether to include a Prefer: return=representation; omit=\"URI\" header") public String getPreferOmit()
Copyright © 2013–2019 DuraSpace, Inc.. All rights reserved.