public interface

ScmHookDetails

com.atlassian.bitbucket.hook.ScmHookDetails

Class Overview

Describes an SCM hook invocation, providing access to the output and error streams of the remote client

Summary

Public Methods
@Nonnull PrintWriter err()
@Nonnull Map<StringString> getEnvironment()
@Nonnull Optional<String> getHookName()
@Nonnull PrintWriter out()

Public Methods

@Nonnull public PrintWriter err ()

Returns
  • a PrintWriter that can be used to output error messages to the remote client.

@Nonnull public Map<StringString> getEnvironment ()

Returns
  • the environment variables set by the SCM when the hook was run

@Nonnull public Optional<String> getHookName ()

Returns
  • the hook-identifier provided by the SCM hook callback

@Nonnull public PrintWriter out ()

Returns
  • a PrintWriter that can be used to output messages to the remote client.