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

some refactoring

parent f6d72ba0
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ public interface OAIPMHProducer { ...@@ -38,7 +38,7 @@ public interface OAIPMHProducer {
@GET @GET
@Path("/") @Path("/")
@Produces({ "application/xml", "text/xml" }) @Produces({ "text/xml" })
JAXBElement<OAIPMHType> getRequest( JAXBElement<OAIPMHType> getRequest(
@QueryParam("verb") String verb, @QueryParam("verb") String verb,
@QueryParam("identifier") @DefaultValue("") String identifier, @QueryParam("identifier") @DefaultValue("") String identifier,
......
...@@ -117,7 +117,7 @@ public class OaiPmhTest{ ...@@ -117,7 +117,7 @@ public class OaiPmhTest{
System.out.println("-----------------------------------\n"); System.out.println("-----------------------------------\n");
} }
/*@Test @Test
public void testGetRequestGetRecordError(){ public void testGetRequestGetRecordError(){
System.out.println("Test for the verb \"GetRecord\" with succesfull response"); System.out.println("Test for the verb \"GetRecord\" with succesfull response");
JAXBElement<OAIPMHType> t = testRequest.getRequest("GetRecord", "wr67.0", "oai_dc", "", "", "", ""); JAXBElement<OAIPMHType> t = testRequest.getRequest("GetRecord", "wr67.0", "oai_dc", "", "", "", "");
...@@ -126,7 +126,7 @@ public class OaiPmhTest{ ...@@ -126,7 +126,7 @@ public class OaiPmhTest{
} }
@Test /*@Test
public void testGetRequestGetRecordError2(){ public void testGetRequestGetRecordError2(){
System.out.println("Test for the verb \"GetRecord\" with succesfull response"); System.out.println("Test for the verb \"GetRecord\" with succesfull response");
JAXBElement<OAIPMHType> p = testRequest.getRequest("GetRecord", "mzw.0", "oai_dc", "", "", "", ""); JAXBElement<OAIPMHType> p = testRequest.getRequest("GetRecord", "mzw.0", "oai_dc", "", "", "", "");
......
No preview for this file type
File deleted
No preview for this file type
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema. // Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.03.11 at 10:36:21 AM MEZ // Generated on: 2014.02.18 at 05:45:27 PM MEZ
// //
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.openarchives.org/OAI/2.0/") @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.openarchives.org/OAI/2.0/",
xmlns = {
@XmlNs(namespaceURI = "http://purl.org/dc/elements/1.1/", prefix = "dc"),
@XmlNs(namespaceURI = "http://www.openarchives.org/OAI/2.0/oai_dc/", prefix = "oai-dc"),
@XmlNs(namespaceURI = "http://www.openarchives.org/OAI/2.0/", prefix = "oaipmh")
}
)
package info.textgrid.middleware.oaipmh; package info.textgrid.middleware.oaipmh;
import javax.xml.bind.annotation.XmlNs;
\ No newline at end of file
No preview for this file type
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