org.gcube.common
Class Utils
java.lang.Object
org.gcube.common.Utils
public class Utils
- extends Object
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getReaderFromHttpGet
public static org.apache.axiom.om.OMElement getReaderFromHttpGet(String baseUrl,
String verb)
throws org.apache.http.client.ClientProtocolException,
IOException,
XMLStreamException,
InterruptedException
- Throws:
org.apache.http.client.ClientProtocolException
IOException
XMLStreamException
InterruptedException
sendException
public static void sendException(org.apache.axiom.om.OMElement element)
throws Exception
- Exceptions wrapper for common OAI errors.
- Parameters:
element -
- Throws:
Exception
extractHeader
public static void extractHeader(org.apache.axiom.om.OMElement headerElement,
Header header)
extractMetadata
public static void extractMetadata(org.apache.axiom.om.OMElement metaElement,
Metadata metadata)
getRecord
public static Record getRecord(org.apache.axiom.om.OMElement elementType)
Copyright © 2013. All Rights Reserved.