Class AbstractRequestClient
java.lang.Object
org.gvsig.vcsgis.lib.requests.AbstractRequest
org.gvsig.vcsgis.lib.repository.remoteclient.requests.AbstractRequestClient
- All Implemented Interfaces:
org.gvsig.tools.dispose.Disposable,VCSGisRequest,SupportError
- Direct Known Subclasses:
AuthenticateRequestClient,CheckoutRequestClient,CommitRequestClient,EntitiesRequestClient,HistoryRequestClient,ListWCRequestClient,LogRequestClient,PrepareWCRequestClient,RevisionChangesRequestClient,RowCreateRequestClient,RowDeleteRequestClient,RowIsOutofdateRequestClient,RowUpdateRequestClient,TopologyPlansRequestClient,UpdateRequestClient,UsersRequestClient
- Author:
- gvSIG Team
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.gvsig.vcsgis.lib.requests.AbstractRequest
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintconsumeResponse(InputStream responseContents) intexecute()protected StringgetLines(BufferedReader reader, int maxLines) protected voidprotected voidabstract voidrequestProducer(Writer outputData) abstract voidresponseConsumer(BufferedReader dataReader) voidsetAuthenticationToken(String token) voidsetUserCode(String userCode) protected voidprotected voidMethods inherited from class org.gvsig.vcsgis.lib.requests.AbstractRequest
cleanLastError, dispose, error, error, getCode, getLastErrorCode, getLastErrorMessage, getRequestName, helper, setAuthenticationTokenAndUser, setEnabledStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.vcsgis.lib.SupportError
cleanLastError, error, error, getLastErrorCode, getLastErrorMessageMethods inherited from interface org.gvsig.vcsgis.lib.repository.requests.VCSGisRequest
getCode, getRequestName, setAuthenticationTokenAndUser, setEnabledStatus
-
Constructor Details
-
AbstractRequestClient
-
-
Method Details
-
getRepository
- Specified by:
getRepositoryin interfaceVCSGisRequest- Overrides:
getRepositoryin classAbstractRequest
-
getAuthenticationToken
- Specified by:
getAuthenticationTokenin interfaceVCSGisRequest
-
setAuthenticationToken
- Specified by:
setAuthenticationTokenin interfaceVCSGisRequest
-
getUserCode
- Specified by:
getUserCodein interfaceVCSGisRequest
-
setUserCode
- Specified by:
setUserCodein interfaceVCSGisRequest
-
getRequestUrl
-
waitRequestProducer
- Throws:
InterruptedException
-
notifyRequestConsumers
protected void notifyRequestConsumers() -
waitResponseProducer
- Throws:
InterruptedException
-
notifyResponseConsumers
protected void notifyResponseConsumers() -
getRequestAsInputStream
- Throws:
IOExceptionInterruptedException
-
getLines
- Throws:
IOException
-
consumeResponse
- Throws:
IOExceptionInterruptedException
-
execute
public int execute()- Specified by:
executein interfaceVCSGisRequest
-
requestProducer
-
responseConsumer
-