Clover Coverage Report - ARESTC 0.1.7-SNAPSHOT
Coverage timestamp: Fri Aug 27 2010 19:12:04 CEST
0   144   0   -
0   23   -   0
0     -  
1    
 
  ConnectorRequest       Line # 35 0 - 0 0 - -1.0
 
No Tests
 
1    /*
2    *
3    * (C)opyright 2010, Nikolaos Georgosopoulos
4    *
5    * This file is part of ARESTC.
6   
7    ARESTC is free software: you can redistribute it and/or modify
8    it under the terms of the Lesser General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11   
12    ARESTC is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15    GNU General Public License for more details.
16   
17    You should have received a copy of the Lesser General Public License
18    along with ARESTC. If not, see <http://www.gnu.org/licenses/>.
19   
20    */
21    package net.sf.arestc.core;
22   
23    import java.util.Map;
24   
25    import net.sf.arestc.core.bodytransformations.ReturnTransformationTypes;
26    import net.sf.arestc.core.bodytransformations.ReturnTransformer;
27   
28    import org.apache.commons.httpclient.Credentials;
29    import org.apache.commons.httpclient.methods.RequestEntity;
30   
31    // TODO: Auto-generated Javadoc
32    /**
33    * The Interface ConnectorRequest.
34    */
 
35    public interface ConnectorRequest {
36   
37    /**
38    * Gets the body.
39    *
40    * @return the body
41    */
42    RequestEntity getBody();
43   
44    /**
45    * Gets the bODY parameters.
46    *
47    * @param context
48    * the context
49    * @return the bODY parameters
50    */
51    Map<String, Object> getBODYParameters(ConnectorContext context);
52   
53    String getCharset();
54   
55    /**
56    * Gets the credentials.
57    *
58    * @return the credentials
59    */
60    Credentials getCredentials();
61   
62    /**
63    * Gets the end transformer.
64    *
65    * @return the end transformer
66    */
67    ConnectorCommand getEndTransformer();
68   
69    /**
70    * Gets the parameters.
71    *
72    * @return the parameters
73    */
74    Map<String, Object> getParameters();
75   
76    /**
77    * Gets the return transformation type.
78    *
79    * @return the return transformation type
80    */
81    ReturnTransformationTypes getReturnTransformationType();
82   
83    /**
84    * Gets the return transformer.
85    *
86    * @return the return transformer
87    */
88    ReturnTransformer getReturnTransformer();
89   
90    /**
91    * Gets the service name.
92    *
93    * @return the service name
94    */
95    String getServiceName();
96   
97    /**
98    * Gets the start transformer.
99    *
100    * @return the start transformer
101    */
102    ConnectorCommand getStartTransformer();
103   
104    /**
105    * Gets the uRL parameters.
106    *
107    * @param context
108    * the context
109    * @return the uRL parameters
110    */
111    Map<String, Object> getURLParameters(ConnectorContext context);
112   
113    /**
114    * Sets the body.
115    *
116    * @param body
117    * the new body
118    */
119    void setBody(RequestEntity body);
120   
121    /**
122    * Sets the credentials.
123    *
124    * @param credentials
125    * the new credentials
126    */
127    void setCredentials(Credentials credentials);
128   
129    /**
130    * Sets the end transformer.
131    *
132    * @param newLink
133    * the new end transformer
134    */
135    void setEndTransformer(ConnectorCommand newLink);
136   
137    /**
138    * Sets the start transformer.
139    *
140    * @param newLink
141    * the new start transformer
142    */
143    void setStartTransformer(ConnectorCommand newLink);
144    }