public abstract class

AbstractScmRequest

extends Object
implements ScmRequest
java.lang.Object
   ↳ com.atlassian.stash.scm.AbstractScmRequest
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A simple base class to facilitate implementing SCM requests.

Summary

Public Constructors
AbstractScmRequest()
Public Methods
boolean isInvalid()
Always indicates that the request is valid.
void sendAuthenticationError(AuthenticationState state, String message, String detailMessage)
Delegates sending authentication errors to sendError(String, String).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.stash.scm.ScmRequest

Public Constructors

public AbstractScmRequest ()

Public Methods

public boolean isInvalid ()

Always indicates that the request is valid.

Returns
  • false

public void sendAuthenticationError (AuthenticationState state, String message, String detailMessage)

Delegates sending authentication errors to sendError(String, String).

Parameters
state the current state of the user's authentication, see AuthenticationState for details
message an i18n'd message to (optionally) send to the client if it supports displaying custom messages
detailMessage a longer detailed explanation of the problem
Throws
IOException if there is an error writing the error message to the client