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 {
@QueryParam("until") @DefaultValue("") String until,
@QueryParam("resumptionToken") @DefaultValue("") String resumptionToken) {
ObjectFactory obf = new ObjectFactory();
OAIPMHType response = new OAIPMHType();
JAXBElement<OAIPMHType> oaipmhRoot = obf.createOAIPMH(response);
VerbType verbParam = setVerb(verb);
RequestType request = new RequestType();
if(request.getVerb() == null){
verbParam = setVerb("Identify");
request.setVerb(verbParam);
}
/*----Setting the responseDate of today-----*/
try {
......@@ -122,11 +130,7 @@ public class OAIPMHImpl implements OAIPMHProducer {
request.setValue(DARIAHConstants.DARIAH_REP_BASEURL);
}
if(request.getVerb() == null){
verbParam = setVerb("Identify");
request.setVerb(verbParam);
}
if (verbParam != null) {
if (verbParam.value().equals("Identify")) {
......
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