public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
extractHeader(org.apache.axiom.om.OMElement headerElement,
Header header) |
static void |
extractMetadata(org.apache.axiom.om.OMElement metaElement,
Metadata metadata) |
static org.apache.axiom.om.OMElement |
getReaderFromHttpGet(String baseUrl,
String verb) |
static Record |
getRecord(org.apache.axiom.om.OMElement elementType) |
static void |
sendException(org.apache.axiom.om.OMElement element)
Exceptions wrapper for common OAI errors.
|
public static org.apache.axiom.om.OMElement getReaderFromHttpGet(String baseUrl, String verb) throws org.apache.http.client.ClientProtocolException, IOException, XMLStreamException, InterruptedException
org.apache.http.client.ClientProtocolExceptionIOExceptionXMLStreamExceptionInterruptedExceptionpublic static void sendException(org.apache.axiom.om.OMElement element)
throws Exception
element - Exceptionpublic static void extractHeader(org.apache.axiom.om.OMElement headerElement,
Header header)
public static void extractMetadata(org.apache.axiom.om.OMElement metaElement,
Metadata metadata)
public static Record getRecord(org.apache.axiom.om.OMElement elementType)
Copyright © 2014. All Rights Reserved.