Skip to content
Snippets Groups Projects
Commit 6f408cbc authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Fix some uppercase logging

Add internal class for schems location addition
parent 50b2681c
No related branches found
No related tags found
No related merge requests found
......@@ -578,7 +578,7 @@ public class OAIPMHImpl implements OAIPMHProducer {
} catch (ParseException e) {
this.log.debug("can not parse date format");
} catch (DatatypeConfigurationException e) {
this.log.debug("Datatype configuration failed");
this.log.debug("datatype configuration failed");
}
// Convert the request values.
......@@ -636,7 +636,7 @@ public class OAIPMHImpl implements OAIPMHProducer {
JAXBElement<OAIPMHtype> result = obf.createOAIPMH(oai);
// Add DC XSD URL for xsi:schemaLocation.
// TODO Add DC XSD URL for xsi:schemaLocation.
return result;
}
......
......@@ -16,49 +16,49 @@ import info.textgrid.utils.httpclient.TGHttpConnection;
*/
public class Rest {
private Log log = LogFactory.getLog(Rest.class);
private Log log = LogFactory.getLog(Rest.class);
/**
* @return
*/
@GET
@Path("/buildinfo")
@Produces("text/html")
public String getBuildInfo() {
/**
* @return
*/
@GET
@Path("/buildinfo")
@Produces("text/html")
public String getBuildInfo() {
InputStream is = this.getClass().getResourceAsStream("buildinfo.txt");
Properties prop = new Properties();
try {
prop.load(is);
} catch (IOException e) {
return "Error opening buildinfo.txt";
} finally {
try {
is.close();
} catch (IOException e) {
this.log.error("error closing stream", e);
}
}
InputStream is = this.getClass().getResourceAsStream("buildinfo.txt");
Properties prop = new Properties();
try {
prop.load(is);
} catch (IOException e) {
return "error opening buildinfo.txt";
} finally {
try {
is.close();
} catch (IOException e) {
this.log.error("error closing stream", e);
}
}
String info = "This is oaipmh " + prop.get("version") + " built "
+ prop.get("time") + " from git: " + prop.get("branch")
+ " (rev:" + prop.get("build") + ")";
String info = "this is oaipmh " + prop.get("version") + " built "
+ prop.get("time") + " from git: " + prop.get("branch")
+ " (rev:" + prop.get("build") + ")";
return info;
}
return info;
}
/**
* @return
*/
@GET
@Path("/cmstat")
@Produces("text/plain")
public Response getConManStat() {
/**
* @return
*/
@GET
@Path("/cmstat")
@Produces("text/plain")
public Response getConManStat() {
String[] routes = {};
String cmstats = TGHttpConnection.generateInfoString(routes);
String[] routes = {};
String cmstats = TGHttpConnection.generateInfoString(routes);
return Response.ok(cmstats).build();
}
return Response.ok(cmstats).build();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment