View Javadoc
1   /*
2    * Copyright 2010 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.service.external.common.api;
20  
21  import org.springframework.oxm.Unmarshaller;
22  
23  /**
24   * The Interface XmlAgent.
25   */
26  public interface XmlAgent {
27  
28  	/**
29  	 * Unmarshall xml.
30  	 *
31  	 * @param unmarshaller
32  	 *            the unmarshaller
33  	 * @param accessUrl
34  	 *            the access url
35  	 * @return the object
36  	 * @throws Exception
37  	 *             the exception
38  	 */
39  	Object unmarshallXml(Unmarshaller unmarshaller, String accessUrl)
40  			throws Exception;
41  
42  	/**
43  	 * Unmarshall xml.
44  	 *
45  	 * @param unmarshaller
46  	 *            the unmarshaller
47  	 * @param accessUrl
48  	 *            the access url
49  	 * @param nameSpace
50  	 *            the name space
51  	 * @param replace
52  	 *            the replace
53  	 * @param with
54  	 *            the with
55  	 * @return the object
56  	 * @throws Exception
57  	 *             the exception
58  	 */
59  	Object unmarshallXml(Unmarshaller unmarshaller, String accessUrl,
60  			String nameSpace, String replace, String with) throws Exception;
61  
62  	/**
63  	 * Retrive content.
64  	 *
65  	 * @param accessUrl
66  	 *            the access url
67  	 * @return the string
68  	 * @throws Exception
69  	 *             the exception
70  	 */
71  	String retriveContent(String accessUrl) throws Exception;
72  
73  }