- read(InputStream) - Static method in class org.javalite.common.Util
-
Reads contents of the input stream fully and returns it as String.
- read(InputStream, String) - Static method in class org.javalite.common.Util
-
Reads contents of the input stream fully and returns it as String.
- read(File) - Static method in class org.javalite.common.Util
-
Reads file into a byte array.
- READ_TIMEOUT - Static variable in class org.javalite.http.Http
-
Read timeout in milliseconds.
- readFile(String) - Static method in class org.javalite.common.Util
-
Reads contents of file fully and returns as string.
- readFile(String, String) - Static method in class org.javalite.common.Util
-
Reads contents of file fully and returns as string.
- readProperties(String) - Static method in class org.javalite.common.Util
-
Reads a property file from classpath or from a file system to a properties object.
- readResource(String) - Static method in class org.javalite.common.Util
-
Reads contents of resource fully into a string.
- readResource(String, String) - Static method in class org.javalite.common.Util
-
Reads contents of resource fully into a string.
- readResourceBytes(String) - Static method in class org.javalite.common.Util
-
Reads contents of resource fully into a byte array.
- redirect - Variable in class org.javalite.http.Request
-
- redirect(boolean) - Method in class org.javalite.http.Request
-
Configures this request to follow redirects.
- repeat(StringBuilder, String, int) - Static method in class org.javalite.common.Util
-
Repeats string of characters a defined number of times, and appends result to StringBuilder.
- replaceError() - Static method in class org.javalite.test.SystemStreamUtil
-
Replaces System.err with internal buffer.
- replaceOut() - Static method in class org.javalite.test.SystemStreamUtil
-
Replaces System.out with internal buffer.
- Request<T extends Request> - Class in org.javalite.http
-
This class provides static convenience methods for simple HTTP requests.
- Request(String, int, int) - Constructor for class org.javalite.http.Request
-
- requiresLayout() - Method in class org.javalite.logging.LoggingTestAppender
-
- Response(String, String) - Constructor for class org.javalite.common.RuntimeUtil.Response
-
- responseCode() - Method in class org.javalite.http.Request
-
Returns HTTP response code.
- responseMessage() - Method in class org.javalite.http.Request
-
Returns response message from server, such as "OK", or "Created", etc.
- restoreSystemErr() - Static method in class org.javalite.test.SystemStreamUtil
-
Restores System.err to former glory.
- restoreSystemOut() - Static method in class org.javalite.test.SystemStreamUtil
-
Restores System.out to former glory.
- RuntimeUtil - Class in org.javalite.common
-
Utility class to shell out system commands
- RuntimeUtil() - Constructor for class org.javalite.common.RuntimeUtil
-
- RuntimeUtil.Response - Class in org.javalite.common
-
- sanitize(String) - Static method in class org.javalite.common.JsonHelper
-
Escapes control characters in a string.
- sanitize(String, boolean) - Static method in class org.javalite.common.JsonHelper
-
- sanitize(String, boolean, Character...) - Static method in class org.javalite.common.JsonHelper
-
Escapes control characters in a string when you need to
generate JSON.
- saveTo(String, InputStream) - Static method in class org.javalite.common.Util
-
Saves content read from input stream into a file.
- saveTo(String, byte[]) - Static method in class org.javalite.common.Util
-
Saves content of byte array to file.
- selectStrings(String, String) - Static method in class org.javalite.test.XPathHelper
-
Selects text nodes as list of strings
- selectText(String) - Method in class org.javalite.test.XPathHelper
-
Retrieves text of a single node.
- selectText(String, String) - Static method in class org.javalite.test.XPathHelper
-
Selects text from a single node.
- set(T...) - Static method in class org.javalite.common.Collections
-
Creates a set from values.
- setDateFormatPattern(String) - Method in class org.javalite.logging.JsonLog4jLayout
-
Property for specifying date format.
- setName(String) - Method in class org.javalite.http.FormField
-
- shortName(String) - Static method in class org.javalite.common.Inflector
-
- shouldBe(String) - Method in class org.javalite.test.jspec.Expectation
-
Invokes a boolean method and uses return value in comparison.
- shouldBeA(Class) - Method in class org.javalite.test.jspec.Expectation
-
Tests that the Tested value is a specific type.
- shouldBeEqual(T) - Method in class org.javalite.test.jspec.Expectation
-
Tested value is equal expected.
- shouldBeFalse() - Method in class org.javalite.test.jspec.Expectation
-
Tested value should be false.
- shouldBeNull() - Method in class org.javalite.test.jspec.Expectation
-
Tested value should be null.
- shouldBeTheSameAs(T) - Method in class org.javalite.test.jspec.Expectation
-
Tested value is the same reference value as expected.
- shouldBeTrue() - Method in class org.javalite.test.jspec.Expectation
-
Tested value should be true.
- shouldBeType(Class) - Method in class org.javalite.test.jspec.Expectation
-
Tests that the Tested value is a specific type.
- shouldContain(Object) - Method in class org.javalite.test.jspec.Expectation
-
Tests that an expected value is contained in the tested object.
- shouldEqual(T) - Method in class org.javalite.test.jspec.Expectation
-
- shouldHave(String) - Method in class org.javalite.test.jspec.Expectation
-
This is for cases suh as: "hasErrors()": a(p).shouldHave("errors").
- shouldNotBe(String) - Method in class org.javalite.test.jspec.Expectation
-
Invokes a boolean method and uses return value in comparison.
- shouldNotBeEqual(T) - Method in class org.javalite.test.jspec.Expectation
-
Tested and expected values are not equal.
- shouldNotBeNull() - Method in class org.javalite.test.jspec.Expectation
-
Tested reference should not be null.
- shouldNotBeTheSameAs(T) - Method in class org.javalite.test.jspec.Expectation
-
Tested value is not the same reference value as expected.
- shouldNotContain(Object) - Method in class org.javalite.test.jspec.Expectation
-
- shouldNotHave(String) - Method in class org.javalite.test.jspec.Expectation
-
This is for cases suh as: "hasErrors()": a(p).shouldNotHave("errors").
- singularize(String) - Static method in class org.javalite.common.Inflector
-
- split(String, String) - Static method in class org.javalite.common.Util
-
Splits a string into an array using provided delimiters.
- split(String, char) - Static method in class org.javalite.common.Util
-
Splits a string into an array using provided delimiter.
- SystemStreamUtil - Class in org.javalite.test
-
This class can be used to catch standard and error outputs in tests so as not to
pollute test printout with "good" exceptions stack traces.
- tableize(String) - Static method in class org.javalite.common.Inflector
-
Converts a camel case to underscore and then pluralizes.
- Templator - Class in org.javalite.common
-
Simple implementation of small quick templates filled with dynamic data.
An example of a template:
- Templator(String) - Constructor for class org.javalite.common.Templator
-
- TestException - Exception in org.javalite.test.jspec
-
- TestException() - Constructor for exception org.javalite.test.jspec.TestException
-
- TestException(String) - Constructor for exception org.javalite.test.jspec.TestException
-
- TestException(String, Throwable) - Constructor for exception org.javalite.test.jspec.TestException
-
- TestException(Throwable) - Constructor for exception org.javalite.test.jspec.TestException
-
- text() - Method in class org.javalite.http.Request
-
Fetches response content from server as String.
- text(String) - Method in class org.javalite.http.Request
-
Fetches response content from server as String.
- the(Object) - Static method in class org.javalite.test.jspec.JSpec
-
- the(Object) - Method in interface org.javalite.test.jspec.JSpecSupport
-
- toBase64(byte[]) - Static method in class org.javalite.common.Util
-
Will encode byte array using Base64 encoding.
- toBigDecimal(Object) - Static method in class org.javalite.common.Convert
-
Converts value to BigDecimal if it can.
- toBoolean(Object) - Static method in class org.javalite.common.Convert
-
Returns true if the value is any numeric type and has a value of 1, or
if string type has a value of '1', 't', 'y', 'true' or 'yes'.
- toBytes(Object) - Static method in class org.javalite.common.Convert
-
Converts value to bytes array if it can.
- toBytes(Blob) - Static method in class org.javalite.common.Convert
-
Converts java.sql.Blob to bytes array.
- toDouble(Object) - Static method in class org.javalite.common.Convert
-
Converts any value to Double.
- toFloat(Object) - Static method in class org.javalite.common.Convert
-
Converts value to Float if it can.
- toHumanFormat(long, long) - Static method in class org.javalite.common.HumanDate
-
Generates a human representation of distance in time between two time stamps.
- toHumanFormat(long) - Static method in class org.javalite.common.HumanDate
-
- toInteger(Object) - Static method in class org.javalite.common.Convert
-
Converts value to Integer if it can.
- toIsoString(Date) - Static method in class org.javalite.common.Convert
-
Converts a java.util.Date to a String in ISO 8601 format: "yyyy-MM-dd'T'HH:mm:ss'Z'"
in UTC timezone for timestamps, and "yyyy-MM-dd" for instances of java.sql.Date.
- toJSON() - Static method in class org.javalite.logging.Context
-
- toJsonObject(Object...) - Static method in class org.javalite.common.JsonHelper
-
Converts input into a JSON object.
- toJsonString(Object) - Static method in class org.javalite.common.JsonHelper
-
Convert Java object to a JSON string.
- toList(String) - Static method in class org.javalite.common.JsonHelper
-
Convert JSON array tp Java List
- toLong(Object) - Static method in class org.javalite.common.Convert
-
Converts value to Long if it can.
- toMap(String) - Static method in class org.javalite.common.JsonHelper
-
Convert a JSON map to a Java Map
- toMaps(String) - Static method in class org.javalite.common.JsonHelper
-
Convert JSON Array to Java array of maps.
- toShort(Object) - Static method in class org.javalite.common.Convert
-
Converts value to Short if it can.
- toSqlDate(Object) - Static method in class org.javalite.common.Convert
-
Expects a java.sql.Date, java.sql.Timestamp, java.sql.Time, java.util.Date,
Long or any object whose toString method has this format: yyyy-mm-dd.
- toString(Object) - Static method in class org.javalite.common.Convert
-
Returns string representation of an object, including
Clob.
- toTime(Object) - Static method in class org.javalite.common.Convert
-
If the value is instance of java.sql.Time, returns it, else tries to convert java.util.Date or Long to
Time, else tries to convert using
Time.valueOf(String).
- toTimestamp(Object) - Static method in class org.javalite.common.Convert
-
If the value is instance of java.sql.Timestamp, returns it, else tries to convert java.util.Date or Long to
Timestamp, else tries to convert using
Timestamp.valueOf(String).
- truncateToSqlDate(Object) - Static method in class org.javalite.common.Convert
-
Expects a java.sql.Date, java.sql.Timestamp, java.sql.Time, java.util.Date,
Long or string with format "yyyy-MM-dd".
- truncateToSqlDate(long) - Static method in class org.javalite.common.Convert
-