org.mycore.services.fieldquery
Class MCRQueryClientWebService

java.lang.Object
  extended by org.mycore.services.fieldquery.MCRQueryClientBase
      extended by org.mycore.services.fieldquery.MCRQueryClientWebService
All Implemented Interfaces:
MCRQueryClientInterface

public class MCRQueryClientWebService
extends MCRQueryClientBase


Field Summary
protected  String endpoint
          The complete WebService URL *
protected static org.apache.axis.description.OperationDesc operation
          The description of the doQuery service operation
protected static org.apache.axis.client.Service service
          The AXIS service object
 
Fields inherited from class org.mycore.services.fieldquery.MCRQueryClientBase
access, alias, LOGGER, servicepath, url
 
Constructor Summary
MCRQueryClientWebService()
           
 
Method Summary
 Document doRetrieveClassification(String level, String type, String classID, String categID, String format)
          Retrieves an classification part from remote host using the WebService.
 Document doRetrieveLinks(String from, String to, String type)
          Retrieves an link from remote host using the WebService.
 Document doRetrieveObject(String ID)
          Retrieves an Object from remote host using the defined service.
 void init(Element xmlhost)
           
 void search(Document inDoc, MCRResults results)
          Executes a query on a single remote host using the defined service.
 
Methods inherited from class org.mycore.services.fieldquery.MCRQueryClientBase
getAlias
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected static org.apache.axis.client.Service service
The AXIS service object


operation

protected static org.apache.axis.description.OperationDesc operation
The description of the doQuery service operation


endpoint

protected String endpoint
The complete WebService URL *

Constructor Detail

MCRQueryClientWebService

public MCRQueryClientWebService()
Method Detail

init

public void init(Element xmlhost)
Specified by:
init in interface MCRQueryClientInterface
Overrides:
init in class MCRQueryClientBase

search

public void search(Document inDoc,
                   MCRResults results)
Executes a query on a single remote host using the defined service.

Specified by:
search in interface MCRQueryClientInterface
Overrides:
search in class MCRQueryClientBase
Parameters:
inDoc - the query as W3C DOM document
results - the result list to add the hits to

doRetrieveObject

public Document doRetrieveObject(String ID)
Retrieves an Object from remote host using the defined service.

Specified by:
doRetrieveObject in interface MCRQueryClientInterface
Overrides:
doRetrieveObject in class MCRQueryClientBase
Parameters:
hostAlias - the alias of the remote host as defined in hosts.xml
ID - the ID of the object to retrieve
Returns:
the object document

doRetrieveClassification

public Document doRetrieveClassification(String level,
                                         String type,
                                         String classID,
                                         String categID,
                                         String format)
Retrieves an classification part from remote host using the WebService.

Specified by:
doRetrieveClassification in interface MCRQueryClientInterface
Overrides:
doRetrieveClassification in class MCRQueryClientBase
Parameters:
level - the level of the classification to retrieve
type - the type of the classification to retrieve
classID - the class ID of the classification to retrieve
categID - the category ID of the classification to retrieve
format - of retrieved classification, valid values are: editor['['formatAlias']']|metadata
Returns:
the classification document

doRetrieveLinks

public Document doRetrieveLinks(String from,
                                String to,
                                String type)
Retrieves an link from remote host using the WebService.

Specified by:
doRetrieveLinks in interface MCRQueryClientInterface
Overrides:
doRetrieveLinks in class MCRQueryClientBase
Parameters:
hostAlias - the alias of the remote host as defined in hosts.xml
from - the source of the link
to - the target of the link
type - the type of the link
Returns:
the mcr:result document