public interface ScmRequest
ScmRequestCheckService to verify preconditions (e.g. permissions), before they are
handled.| Modifier and Type | Method and Description |
|---|---|
com.atlassian.bitbucket.repository.Repository |
getRepository() |
void |
handleRequest()
Performs whatever logic is necessary to handle the request.
|
boolean |
isWrite() |
void |
sendError(String summary,
String detailMessage)
Sends the provided error details to the client, using SCM- and RPC-specific techniques as necessary.
|
@Nonnull com.atlassian.bitbucket.repository.Repository getRepository()
void handleRequest()
throws IOException
IOException to indicate
failures related to reading input or writing output during processing.IOException - if reading or writing fails during processingcom.atlassian.bitbucket.ResourceBusyException - when the server is too busy to execute the requestboolean isWrite()
void sendError(@Nonnull String summary, @Nonnull String detailMessage) throws IOException
summary - a brief summary of the errordetailMessage - a more detailed explanation of the failureIOException - if the error details cannot be written to the underlying output mechanismCopyright © 2024 Atlassian. All rights reserved.