Skip navigation links
A C D E F G H I J L M P R S T V 

A

addCommandArgument(CommandArgument) - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
Adds an argument to the command.
Api - Class in eu.toennies.javahttpobservatoryapi
This Java library provides basic access to Mozilla's Observatory API and is build upon the official API documentation at https://github.com/mozilla/http-observatory/blob/master/httpobs/docs/api.md
Api() - Constructor for class eu.toennies.javahttpobservatoryapi.Api
 
ApiCommand - Class in eu.toennies.javahttpobservatoryapi.commands
 
ApiCommand(String, String, String, String, String) - Constructor for class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
Constructor for new API command.
ApiCommands - Enum in eu.toennies.javahttpobservatoryapi.commands
Enumaration for available API commands.
ApiException - Exception in eu.toennies.javahttpobservatoryapi
 
ApiException() - Constructor for exception eu.toennies.javahttpobservatoryapi.ApiException
 
ApiException(String) - Constructor for exception eu.toennies.javahttpobservatoryapi.ApiException
 
ApiException(Throwable) - Constructor for exception eu.toennies.javahttpobservatoryapi.ApiException
 
ApiException(String, Throwable) - Constructor for exception eu.toennies.javahttpobservatoryapi.ApiException
 
arrayValueMatchRegex(String[], String) - Static method in class eu.toennies.javahttpobservatoryapi.ConsoleUtilities
 

C

callApiCommand() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 
callApiCommand(Map<String, String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 
CommandArgument - Class in eu.toennies.javahttpobservatoryapi.commands
 
CommandArgument(String, String, boolean) - Constructor for class eu.toennies.javahttpobservatoryapi.commands.CommandArgument
 
Console - Class in eu.toennies.javahttpobservatoryapi
The console class.
ConsoleUtilities - Class in eu.toennies.javahttpobservatoryapi
This class holds utility methods for the console.
ConsoleUtilities() - Constructor for class eu.toennies.javahttpobservatoryapi.ConsoleUtilities
 
createPadding(int) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Return a String of padding of length len.

D

DEFAULT_CMD_PREFIX - Static variable in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 
DEFAULT_LONG_CMD_PREFIX - Static variable in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 
DEFAULT_SYNTAX_PREFIX - Static variable in class eu.toennies.javahttpobservatoryapi.HelpFormatter
the string to display at the beginning of the usage statement

E

eu.toennies.javahttpobservatoryapi - package eu.toennies.javahttpobservatoryapi
Provides the classes necessary to make an API call to Mozilla's http observatory.
eu.toennies.javahttpobservatoryapi.commands - package eu.toennies.javahttpobservatoryapi.commands
 

F

findWrapPos(String, int, int) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Finds the next text wrap position after startPos for the text in text with the column width width.

G

getApiCommand() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
Retrieve the API command.
getCommand() - Method in enum eu.toennies.javahttpobservatoryapi.commands.ApiCommands
 
getCommandArguments() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
Retrieves the possible command parameters.
GetCommandWithoutParameter - Class in eu.toennies.javahttpobservatoryapi.commands
 
GetCommandWithoutParameter(String, String, String, String, String) - Constructor for class eu.toennies.javahttpobservatoryapi.commands.GetCommandWithoutParameter
 
getConsoleCommand() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
The long command version used as program parameter.
getConsoleShortCommand() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
The short version used as program parameter
getDescPadding() - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
getDescription() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
Retrieve the description of the command.
getDescription() - Method in class eu.toennies.javahttpobservatoryapi.commands.CommandArgument
 
getHeader() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 
getHeader() - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the header.
getHelp() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 
getInstance() - Static method in class eu.toennies.javahttpobservatoryapi.Console
Get the console.
getKey() - Method in class eu.toennies.javahttpobservatoryapi.commands.CommandArgument
 
getLeftPadding() - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
getNewLine() - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
getProxy() - Method in class eu.toennies.javahttpobservatoryapi.Console
Retrieve the proxy
getSyntaxPrefix() - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
getVersion() - Static method in class eu.toennies.javahttpobservatoryapi.Api
The version
getWidth() - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Returns the 'width'.
GradeDistributionCommand - Class in eu.toennies.javahttpobservatoryapi.commands
This returns each possible grade in the HTTP Observatory, as well as how many scans have fallen into that grade.
GradeDistributionCommand() - Constructor for class eu.toennies.javahttpobservatoryapi.commands.GradeDistributionCommand
 

H

hasArgs() - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
Does this command has arguments?
HelpFormatter - Class in eu.toennies.javahttpobservatoryapi
This class is a utility class for printing the help message.
HelpFormatter(PrintWriter) - Constructor for class eu.toennies.javahttpobservatoryapi.HelpFormatter
 

I

InvokeAssessmentCommand - Class in eu.toennies.javahttpobservatoryapi.commands
This is used to retrieve the results of an existing, ongoing, or completed scan.
InvokeAssessmentCommand() - Constructor for class eu.toennies.javahttpobservatoryapi.commands.InvokeAssessmentCommand
 
isMandatory() - Method in class eu.toennies.javahttpobservatoryapi.commands.CommandArgument
 

J

jsonToMap(JSONObject) - Static method in class eu.toennies.javahttpobservatoryapi.ConsoleUtilities
 

L

listValueMatchRegex(List<String>, String) - Static method in class eu.toennies.javahttpobservatoryapi.ConsoleUtilities
 

M

main(String[]) - Static method in class eu.toennies.javahttpobservatoryapi.Console
The main class.
mapToConsoleOutput(Map<String, Object>) - Static method in class eu.toennies.javahttpobservatoryapi.ConsoleUtilities
 

P

printHelp(ApiCommands[]) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the help for ApiCommands with the specified command line syntax.
printHelp(int, String, String, ApiCommands[], String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the help for ApiCommands[] with the specified command line syntax.
printHelp(int, String, String, ApiCommands[], int, int, String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the help for ApiCommands[] with the specified command line syntax.
printOptions(int, ApiCommands[], int, int) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the help for the specified Options to the specified writer, using the specified width, left padding and description padding.
printUsage(int, String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the cmdLineSyntax to the specified writer, using the specified width.
printWrapped(PrintWriter, int, int, String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the specified text to the specified PrintWriter.
printWrapped(int, String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Print the specified text to the specified PrintWriter.

R

RecentScansCommand - Class in eu.toennies.javahttpobservatoryapi.commands
Retrieve the ten most recent scans that fall within a given score range.
RecentScansCommand() - Constructor for class eu.toennies.javahttpobservatoryapi.commands.RecentScansCommand
 
renderCommands(StringBuffer, int, ApiCommands[], int, int) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Render the specified ApiCommands and return the rendered ApiCommand in a StringBuffer.
renderWrappedText(StringBuffer, int, int, String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Render the specified text and return the rendered Options in a StringBuffer.
RetrieveAssessmentCommand - Class in eu.toennies.javahttpobservatoryapi.commands
This is used to retrieve the results of an existing, ongoing, or completed scan.
RetrieveAssessmentCommand() - Constructor for class eu.toennies.javahttpobservatoryapi.commands.RetrieveAssessmentCommand
 
RetrieveTestResultsCommand - Class in eu.toennies.javahttpobservatoryapi.commands
Each scan consists of a variety of subtests, including Content Security Policy, Subresource Integrity, etc.
RetrieveTestResultsCommand() - Constructor for class eu.toennies.javahttpobservatoryapi.commands.RetrieveTestResultsCommand
 
rtrim(String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
Remove the trailing whitespace from the specified String.
run(List<String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 
run(List<String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.GetCommandWithoutParameter
 
run(List<String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.InvokeAssessmentCommand
 
run(List<String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.RecentScansCommand
 
run(List<String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.RetrieveAssessmentCommand
 
run(List<String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.RetrieveTestResultsCommand
 

S

ScannerStatesCommand - Class in eu.toennies.javahttpobservatoryapi.commands
This returns the state of the scanner.
ScannerStatesCommand() - Constructor for class eu.toennies.javahttpobservatoryapi.commands.ScannerStatesCommand
 
sendApiGetRequest(String, Map<String, String>) - Method in class eu.toennies.javahttpobservatoryapi.Api
Sends an api request and return api response
sendApiPostRequest(String, Map<String, String>) - Method in class eu.toennies.javahttpobservatoryapi.Api
 
setDescPadding(int) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
setLeftPadding(int) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
setNewLine(String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
setSyntaxPrefix(String) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
setWidth(int) - Method in class eu.toennies.javahttpobservatoryapi.HelpFormatter
 
shouldStart(List<String>) - Method in class eu.toennies.javahttpobservatoryapi.commands.ApiCommand
 

T

toList(JSONArray) - Static method in class eu.toennies.javahttpobservatoryapi.ConsoleUtilities
 
toMap(JSONObject) - Static method in class eu.toennies.javahttpobservatoryapi.ConsoleUtilities
Converts a json object into a map object.

V

valueOf(String) - Static method in enum eu.toennies.javahttpobservatoryapi.commands.ApiCommands
Returns the enum constant of this type with the specified name.
values() - Static method in enum eu.toennies.javahttpobservatoryapi.commands.ApiCommands
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G H I J L M P R S T V 
Skip navigation links

Copyright © 2016. All rights reserved.