Revision 102 org.gvsig.gazetteer/trunk/org.gvsig.gazetteer/org.gvsig.gazetteer.lib/src/main/java/org/gvsig/gazetteer/drivers/IGazetteerServiceDriver.java

View differences:

IGazetteerServiceDriver.java
50 50
/**
51 51
 * This interface contains the common methods that have to be
52 52
 * implemented by all the gazetteer drivers.
53
 * 
54
 * 
53
 *
54
 *
55 55
 * @author Jorge Piera Llodra (piera_jor@gva.es)
56 56
 */
57 57
public interface IGazetteerServiceDriver extends IDiscoveryServiceDriver{
......
62 62
	 * @return Array of the attributes of a feature
63 63
	 */
64 64
	public FeatureTypeAttribute[] describeFeatureType(URI uri, String featureType) throws Exception;
65
	
65

  
66 66
	/**
67 67
	 * There are protocols that need to invoke the describeFeatureType
68 68
	 * operation before to do a getFeature.
69
	 * @return if the describeFeatureType operation is needed. 
69
	 * @return if the describeFeatureType operation is needed.
70 70
	 */
71 71
	public boolean isDescribeFeatureTypeNeeded();
72
	
72

  
73 73
	/**
74 74
	 * It returns the foubd records
75 75
	 * @param uri Server URI
76 76
	 * @param query Query with the search parameters
77 77
	 * @return The features
78
	 */	
78
	 */
79 79
	public Feature[] getFeature(URI uri, GazetteerQuery query) throws Exception;
80
		
80

  
81 81
	/**
82 82
	 * @return the projection
83 83
	 */
......
88 88
	 */
89 89
	public void setProjection(String projection);
90 90

  
91
	/**
92
	 * Indicates if the protocol requires a username
93
	 * @param protocol
94
	 * @return
95
	 */
96
	public boolean needsUsername(String protocol);
97

  
98
	/**
99
	 * Returns username for protocol
100
	 * @return
101
	 */
102
	public String getUsername();
103

  
104
	/**
105
	 * Saves username for protocol
106
	 */
107
	public void setUsername(String username);
91 108
}
92 109

  
93 110

  

Also available in: Unified diff