README.md 1.46 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
Repository FITS Service
===================================

This service will return the FITS information associated with a Fedora Binary, in
XML format.  The service can be used with any Camel route in an OSGi container.

Building
--------

To build this project use

12
    gradle install
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

Deploying in OSGi
-----------------

Each of these projects can be deployed in an OSGi container. For example using
[Apache Karaf](http://karaf.apache.org) version 4.x or better, you can run the following
command from its shell:

    feature:repo-add mvn:edu.amherst.acdc/acrepo-karaf/LATEST/xml/features
    feature:install acrepo-exts-fits


Configuration
-------------
The application can be configured by creating the following configuration
file `KARAF_HOME/etc/edu.amherst.acdc.exts.fits.cfg`. The following values 
are available for configuration:

The base URL of the Fedora repository and any authentication parameters

33
34
35
36
    fcrepo.baseUrl=localhost:8080/fcrepo/rest
    fcrepo.authHost=
    fcrepo.authUsername=
    fcrepo.password=
37
38
39

The prefix for the service

40
    rest.prefix=/fits
41
42
43

The port on which the service is made available

44
    rest.port=9601
45
46
47

The hostname on which the service is available

48
    rest.host=localhost
49
50
51

The endpoint on which the FITS server is located

52
    fits.endpoint=localhost:8080/fits
53
54
55
56
57

By editing this file, any currently running routes will be immediately redeployed
with the new values.

For more help see the [Apache Camel](http://camel.apache.org) documentation