Revision 2715 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/main/java/org/gvsig/vcsgis/lib/repository/remoteclient/requests/LogRequestClient.java
LogRequestClient.java | ||
---|---|---|
22 | 22 |
|
23 | 23 |
package org.gvsig.vcsgis.lib.repository.remoteclient.requests; |
24 | 24 |
|
25 |
import java.io.BufferedReader; |
|
25 | 26 |
import java.io.InputStream; |
26 | 27 |
import java.io.OutputStream; |
27 | 28 |
import org.apache.commons.lang3.Range; |
... | ... | |
101 | 102 |
} |
102 | 103 |
|
103 | 104 |
@Override |
105 |
public void requestProducer(OutputStream outputData) { |
|
106 |
error(ERR_OK); |
|
107 |
} |
|
108 |
|
|
109 |
@Override |
|
104 | 110 |
public void setMaxRevisions(int maxRevisions) { |
105 | 111 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
106 | 112 |
} |
107 | 113 |
|
108 | 114 |
@Override |
109 |
public int requestProducer(OutputStream outputData) { |
|
110 |
return error(ERR_OK); |
|
111 |
} |
|
112 |
|
|
113 |
@Override |
|
114 | 115 |
public Range<Long> getRevisionsRange() { |
115 | 116 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
116 | 117 |
} |
117 | 118 |
|
118 | 119 |
@Override |
119 |
public int responseConsumer(InputStream inputData) {
|
|
120 |
public void responseConsumer(BufferedReader inputData) {
|
|
120 | 121 |
try { |
121 |
return error(ERR_OK);
|
|
122 |
error(ERR_OK); |
|
122 | 123 |
} catch (Exception ex) { |
123 | 124 |
LOGGER.warn("Can't retrieve revisions from '"+this.getRequestUrl()+"'.",ex); |
124 |
return error(ERR_CANT_RETRIEVE_ENTITIES, "Can't retrieve revisions from '"+this.getRequestUrl()+"'.");
|
|
125 |
error(ERR_CANT_RETRIEVE_ENTITIES, "Can't retrieve revisions from '"+this.getRequestUrl()+"'."); |
|
125 | 126 |
} |
126 | 127 |
} |
127 | 128 |
|
Also available in: Unified diff