com.hack23.cia.service.external.common.impl
Class AbstractXmlAgentImpl

Package class diagram package AbstractXmlAgentImpl
java.lang.Object
  extended by com.hack23.cia.service.external.common.impl.AbstractXmlAgentImpl
Direct Known Subclasses:
ItsYourParliamentEuApiImpl, RiksdagenApiImpl, ValApiImpl, WorldbankApiImpl

public abstract class AbstractXmlAgentImpl
extends Object

The Class AbstractXmlAgentImpl.


Constructor Summary
AbstractXmlAgentImpl()
          Instantiates a new abstract xml agent impl.
 
Method Summary
protected  String retriveContent(String accessUrl)
          Retrive content.
 Source setNameSpaceOnXmlStream(InputStream in, String nameSpace)
          Sets the name space on xml stream.
protected  Object unmarshallXml(org.springframework.oxm.Unmarshaller unmarshaller, String accessUrl)
          Unmarshall xml.
protected  Object unmarshallXml(org.springframework.oxm.Unmarshaller unmarshaller, String accessUrl, String nameSpace, String replace, String with)
          Unmarshall xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXmlAgentImpl

public AbstractXmlAgentImpl()
Instantiates a new abstract xml agent impl.

Method Detail

retriveContent

protected String retriveContent(String accessUrl)
                         throws Exception
Retrive content.

Parameters:
accessUrl - the access url
Returns:
the string
Throws:
Exception - the exception

setNameSpaceOnXmlStream

public Source setNameSpaceOnXmlStream(InputStream in,
                                      String nameSpace)
                               throws Exception
Sets the name space on xml stream.

Parameters:
in - the in
nameSpace - the name space
Returns:
the source
Throws:
Exception - the exception

unmarshallXml

protected Object unmarshallXml(org.springframework.oxm.Unmarshaller unmarshaller,
                               String accessUrl)
                        throws Exception
Unmarshall xml.

Parameters:
unmarshaller - the unmarshaller
accessUrl - the access url
Returns:
the object
Throws:
Exception - the exception

unmarshallXml

protected Object unmarshallXml(org.springframework.oxm.Unmarshaller unmarshaller,
                               String accessUrl,
                               String nameSpace,
                               String replace,
                               String with)
                        throws Exception
Unmarshall xml.

Parameters:
unmarshaller - the unmarshaller
accessUrl - the access url
nameSpace - the name space
replace - the replace
with - the with
Returns:
the object
Throws:
Exception - the exception


Copyright © 2008-2011 www.hack23.com. All Rights Reserved.