org.gcube.common
Class Utils

java.lang.Object
  extended by org.gcube.common.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

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.