java.lang.Object
org.eclipse.jgit.internal.transport.sshd.proxy.StatusLine

public class StatusLine extends Object
A very simple representation of a HTTP status line.
  • Field Details

    • version

      private final String version
    • resultCode

      private final int resultCode
    • reason

      private final String reason
  • Constructor Details

    • StatusLine

      public StatusLine(String version, int resultCode, String reason)
      Create a new StatusLine with the given response code and reason string.
      Parameters:
      version - the version string (normally "HTTP/1.1" or "HTTP/1.0")
      resultCode - the HTTP response code (200, 401, etc.)
      reason - the reason phrase for the code
  • Method Details

    • getVersion

      public String getVersion()
      Retrieves the version string.
      Returns:
      the version string
    • getResultCode

      public int getResultCode()
      Retrieves the HTTP response code.
      Returns:
      the code
    • getReason

      public String getReason()
      Retrieves the HTTP reason phrase.
      Returns:
      the reason