Skip to content
Snippets Groups Projects
Commit a8223cf3 authored by mbrodhu's avatar mbrodhu
Browse files

empty request to identify

parent 7f98a488
No related branches found
No related tags found
No related merge requests found
...@@ -86,11 +86,19 @@ public class OAIPMHImpl implements OAIPMHProducer { ...@@ -86,11 +86,19 @@ public class OAIPMHImpl implements OAIPMHProducer {
@QueryParam("until") @DefaultValue("") String until, @QueryParam("until") @DefaultValue("") String until,
@QueryParam("resumptionToken") @DefaultValue("") String resumptionToken) { @QueryParam("resumptionToken") @DefaultValue("") String resumptionToken) {
ObjectFactory obf = new ObjectFactory(); ObjectFactory obf = new ObjectFactory();
OAIPMHType response = new OAIPMHType(); OAIPMHType response = new OAIPMHType();
JAXBElement<OAIPMHType> oaipmhRoot = obf.createOAIPMH(response); JAXBElement<OAIPMHType> oaipmhRoot = obf.createOAIPMH(response);
VerbType verbParam = setVerb(verb); VerbType verbParam = setVerb(verb);
RequestType request = new RequestType(); RequestType request = new RequestType();
if(request.getVerb() == null){
verbParam = setVerb("Identify");
request.setVerb(verbParam);
}
/*----Setting the responseDate of today-----*/ /*----Setting the responseDate of today-----*/
try { try {
...@@ -122,11 +130,7 @@ public class OAIPMHImpl implements OAIPMHProducer { ...@@ -122,11 +130,7 @@ public class OAIPMHImpl implements OAIPMHProducer {
request.setValue(DARIAHConstants.DARIAH_REP_BASEURL); request.setValue(DARIAHConstants.DARIAH_REP_BASEURL);
} }
if(request.getVerb() == null){
verbParam = setVerb("Identify");
request.setVerb(verbParam);
}
if (verbParam != null) { if (verbParam != null) {
if (verbParam.value().equals("Identify")) { if (verbParam.value().equals("Identify")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment