de.fhhannover.inform.trust.ifmapj.messages
Class Requests.Helpers

java.lang.Object
  extended by de.fhhannover.inform.trust.ifmapj.messages.Requests.Helpers
Enclosing class:
Requests

public static class Requests.Helpers
extends Object

This class provides helpers for custom request implementations. It's not a fixed API!


Method Summary
static void addIdentifier(Identifier i, Document doc, Element to)
           
static void addIdentifiers(IdentifierHolder ih, Document doc, Element to)
           
static void addSearchInfo(SearchHolder searchInfo, Document doc, Element to)
           
static void addSessionId(Element el, Request r)
           
static String baseNsUri()
           
static void checkForError(Element el)
           
static void checkRequestType(Request req, RequestHandler<? extends Request> rh)
           
static void checkSimpleResult(Element el, String expected)
           
static Element getResponseContentErrorCheck(Element response)
           
static Element getResponseContentNoErrorCheck(Element response)
           
static IfmapErrorResult parseErrorResult(Element el)
           
static List<Document> parseMetadataList(Element el)
           
static ResultItem parseResultItem(Element el)
           
static SearchResult parseSearchResult(Element sres, SearchResult.Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

baseNsUri

public static final String baseNsUri()

addSearchInfo

public static void addSearchInfo(SearchHolder searchInfo,
                                 Document doc,
                                 Element to)
                          throws MarshalException
Throws:
MarshalException

addIdentifiers

public static void addIdentifiers(IdentifierHolder ih,
                                  Document doc,
                                  Element to)
                           throws MarshalException
Throws:
MarshalException

addIdentifier

public static void addIdentifier(Identifier i,
                                 Document doc,
                                 Element to)
                          throws MarshalException
Throws:
MarshalException

addSessionId

public static void addSessionId(Element el,
                                Request r)
                         throws MarshalException
Throws:
MarshalException

parseSearchResult

public static SearchResult parseSearchResult(Element sres,
                                             SearchResult.Type type)
                                      throws UnmarshalException
Throws:
UnmarshalException

parseResultItem

public static ResultItem parseResultItem(Element el)
                                  throws UnmarshalException
Throws:
UnmarshalException

parseMetadataList

public static List<Document> parseMetadataList(Element el)
                                        throws UnmarshalException
Throws:
UnmarshalException

parseErrorResult

public static IfmapErrorResult parseErrorResult(Element el)
                                         throws UnmarshalException
Throws:
UnmarshalException

checkSimpleResult

public static void checkSimpleResult(Element el,
                                     String expected)
                              throws UnmarshalException,
                                     IfmapErrorResult
Throws:
UnmarshalException
IfmapErrorResult

getResponseContentErrorCheck

public static Element getResponseContentErrorCheck(Element response)
                                            throws UnmarshalException,
                                                   IfmapErrorResult
Throws:
UnmarshalException
IfmapErrorResult

getResponseContentNoErrorCheck

public static Element getResponseContentNoErrorCheck(Element response)
                                              throws UnmarshalException,
                                                     IfmapErrorResult
Throws:
UnmarshalException
IfmapErrorResult

checkForError

public static void checkForError(Element el)
                          throws UnmarshalException,
                                 IfmapErrorResult
Throws:
UnmarshalException
IfmapErrorResult

checkRequestType

public static void checkRequestType(Request req,
                                    RequestHandler<? extends Request> rh)
                             throws MarshalException
Throws:
MarshalException


Copyright © 2012 Trust@FHH. All Rights Reserved.