StorageRequest<C,P,R> Classe
- java.
lang. Object - com.
microsoft. azure. storage. core. StorageRequest<C,P,R>
- com.
Parâmetros de tipo
- C
O tipo de cliente de serviço
- P
O tipo do objeto pai, ou seja, CloudBlobContainer para downloadAttributes etc.
- R
O tipo do resultado esperado
public class StorageRequest<C,P,R>
RESERVADO PARA USO INTERNO. Uma classe que encapsula a execução de uma determinada operação de armazenamento.
Resumo do Construtor
Construtor | Description |
---|---|
StorageRequest() |
Ctor padrão. |
StorageRequest(final RequestOptions options, StorageUri storageUri) |
Inicializa uma nova instância da classe StorageRequest. |
Resumo do método
Detalhes do construtor
StorageRequest
protected StorageRequest()
Ctor padrão.
StorageRequest
public StorageRequest(final RequestOptions options, StorageUri storageUri)
Inicializa uma nova instância da classe StorageRequest.
Parameters:
Detalhes do método
applyLocationModeToRequest
public void applyLocationModeToRequest()
buildRequest
public abstract HttpURLConnection buildRequest(C client, P parentObject, OperationContext context)
Função para construir a solicitação.
Parameters:
Returns:
Throws:
getArePropertiesPopulated
public boolean getArePropertiesPopulated()
Returns:
getConnection
public final HttpURLConnection getConnection()
Returns:
getContentMD5
public final String getContentMD5()
Returns:
getCurrentDescriptor
protected StreamMd5AndLength getCurrentDescriptor()
Returns:
getCurrentLocation
public StorageLocation getCurrentLocation()
Returns:
getCurrentRequestByteCount
public long getCurrentRequestByteCount()
Returns:
getETagLockCondition
public AccessCondition getETagLockCondition()
Returns:
getException
public final StorageException getException()
Returns:
getLength
public Long getLength()
Returns:
getLocationMode
public LocationMode getLocationMode()
Returns:
getLockedETag
public final String getLockedETag()
Returns:
getOffset
public Long getOffset()
Returns:
getRequestLocationMode
public RequestLocationMode getRequestLocationMode()
Returns:
getRequestOptions
public final RequestOptions getRequestOptions()
Returns:
getResult
public final RequestResult getResult()
Returns:
getSendStream
public final InputStream getSendStream()
Returns:
getStorageUri
public StorageUri getStorageUri()
Returns:
initialize
protected final void initialize(OperationContext opContext)
Redefine a operação status sinalizadores entre as operações.
Parameters:
initializeLocation
public void initializeLocation()
isNonExceptionedRetryableFailure
public final boolean isNonExceptionedRetryableFailure()
Returns:
isSent
protected boolean isSent()
Returns:
materializeException
protected final StorageException materializeException(final OperationContext opContext)
Retorna a exceção mantida da operação se ela estiver definida, caso contrário, a exceção traduzida.
Parameters:
Returns:
parseErrorDetails
public StorageExtendedErrorInformation parseErrorDetails()
Retorna informações de erro estendidas para essa solicitação.
Returns:
postProcessResponse
public R postProcessResponse(HttpURLConnection connection, P parentObject, C client, OperationContext context, R storageObject)
Função recuperação pós-fluxo.
Parameters:
Returns:
Throws:
preProcessResponse
public abstract R preProcessResponse(P parentObject, C client, OperationContext context)
Função de recuperação de pré-fluxo.
Parameters:
Returns:
Throws:
recoveryAction
public void recoveryAction(OperationContext context)
Ação de recuperação para novas tentativas.
Parameters:
Throws:
setArePropertiesPopulated
public void setArePropertiesPopulated(boolean arePropertiesPopulated)
Parameters:
setConnection
public final void setConnection(final HttpURLConnection connection)
Parameters:
setContentMD5
public void setContentMD5(String contentMD5)
Parameters:
setCurrentDescriptor
protected void setCurrentDescriptor(StreamMd5AndLength currentDescriptor)
Parameters:
setCurrentLocation
public void setCurrentLocation(StorageLocation currentLocation)
Parameters:
setCurrentRequestByteCount
public void setCurrentRequestByteCount(long currentRequestByteCount)
Parameters:
setETagLockCondition
public void setETagLockCondition(AccessCondition etagLockCondition)
Parameters:
setException
protected final void setException(final StorageException exceptionReference)
Parameters:
setHeaders
public void setHeaders(HttpURLConnection connection, P parentObject, OperationContext context)
Função para definir cabeçalhos personalizados.
Parameters:
setIsSent
protected void setIsSent(boolean isSent)
Parameters:
setLength
public void setLength(Long length)
Parameters:
setLocationMode
public void setLocationMode(LocationMode locationMode)
Parameters:
setLockedETag
public void setLockedETag(String lockedETag)
Parameters:
setNonExceptionedRetryableFailure
public final void setNonExceptionedRetryableFailure(final boolean nonExceptionedRetryableFailure)
Parameters:
setOffset
public void setOffset(Long offset)
Parameters:
setRequestLocationMode
public void setRequestLocationMode()
Função para aplicar o modo de localização à solicitação.
setRequestLocationMode
public void setRequestLocationMode(RequestLocationMode requestLocationMode)
Parameters:
setRequestOptions
protected final void setRequestOptions(final RequestOptions requestOptions)
Parameters:
setResult
public final void setResult(final RequestResult result)
Parameters:
setSendStream
public void setSendStream(InputStream sendStream)
Parameters:
setStorageUri
public void setStorageUri(StorageUri storageUri)
Parameters:
signBlobQueueAndFileRequest
public static final String signBlobQueueAndFileRequest(HttpURLConnection request, ServiceClient client, long contentLength, OperationContext context)
Parameters:
signRequest
public abstract void signRequest(HttpURLConnection connection, C client, OperationContext context)
Função para Cabeçalhos de sinal.
Parameters:
Throws:
signTableRequest
public static final void signTableRequest(HttpURLConnection request, ServiceClient client, long contentLength, OperationContext context)
Parameters:
validateLocation
public void validateLocation()
validateStreamWrite
public void validateStreamWrite(StreamMd5AndLength descriptor)
Valide o comprimento do fluxo gravado quando o comprimento for fornecido.
Parameters:
Throws:
Aplica-se a
Azure SDK for Java