A B C D E G H I J L M O P R S T U X

A

a(Object) - Static method in class org.javalite.test.jspec.JSpec
 
a(Object) - Method in class org.javalite.test.jspec.JSpecSupport
 
addEntities(String[][]) - Method in class org.javalite.common.XmlEntities
Adds entities to this entity.
addEntity(String, int) - Method in class org.javalite.common.XmlEntities
Add an entity to this entity.
addIrregular(String, String) - Static method in class org.javalite.common.Inflector
 
addPlural(String, String) - Static method in class org.javalite.common.Inflector
 
addSingular(String, String) - Static method in class org.javalite.common.Inflector
 
arr(T...) - Static method in class org.javalite.common.Collections
Create array from values.
array(T...) - Static method in class org.javalite.common.Collections
Create array from values.
attributeValue(String) - Method in class org.javalite.test.XPathHelper
Returns a value of an attribute.
attributeValue(String, String) - Static method in class org.javalite.test.XPathHelper
Selects a value of attribute.

B

basic(String, String) - Method in class org.javalite.http.Request
Sets a user and password for basic authentication.
blank(Object) - Static method in class org.javalite.common.Util
Returns true if value is either null or it's String representation is empty.
bytes(InputStream) - Static method in class org.javalite.common.Util
Reads contents of the input stream fully and returns it as byte array.
bytes() - Method in class org.javalite.http.Request
Fetches response content from server as bytes.

C

camelize(String) - Static method in class org.javalite.common.Inflector
Generates a camel case version of a phrase from underscore.
camelize(String, boolean) - Static method in class org.javalite.common.Inflector
Generates a camel case version of a phrase from underscore.
capitalize(String) - Static method in class org.javalite.common.Inflector
Capitalizes a word - only a first character is converted to upper case.
close(Closeable) - Static method in class org.javalite.common.Util
 
Collections - Class in org.javalite.common
 
Collections() - Constructor for class org.javalite.common.Collections
 
connect() - Method in class org.javalite.http.Request
 
connection - Variable in class org.javalite.http.Request
 
CONNECTION_TIMEOUT - Static variable in class org.javalite.http.Http
Connection timeout in milliseconds.
ConversionException - Exception in org.javalite.common
 
ConversionException() - Constructor for exception org.javalite.common.ConversionException
 
ConversionException(String) - Constructor for exception org.javalite.common.ConversionException
 
ConversionException(String, Throwable) - Constructor for exception org.javalite.common.ConversionException
 
ConversionException(Throwable) - Constructor for exception org.javalite.common.ConversionException
 
Convert - Class in org.javalite.common
Convenience class for type conversions.
Convert() - Constructor for class org.javalite.common.Convert
 
count(String) - Method in class org.javalite.test.XPathHelper
Counts a collection selected by XPath expression.
count(String, String) - Static method in class org.javalite.test.XPathHelper
Counts a collection selected by XPath expression.

D

Delete - Class in org.javalite.http
Executes a DELETE request.
Delete(String, int, int) - Constructor for class org.javalite.http.Delete
Constructor for making DELETE requests.
delete(String) - Static method in class org.javalite.http.Http
Executes a DELETE request.
delete(String, int, int) - Static method in class org.javalite.http.Http
Executes a DELETE request.
DifferenceExpectation<T> - Class in org.javalite.test.jspec
 
DifferenceExpectation(T) - Constructor for class org.javalite.test.jspec.DifferenceExpectation
 
dispose() - Method in class org.javalite.http.Request
This method is already called from text() and bytes(), you do not have to call it if you use those methods.
doConnect() - Method in class org.javalite.http.Delete
 
doConnect() - Method in class org.javalite.http.Get
 
doConnect() - Method in class org.javalite.http.Post
 
doConnect() - Method in class org.javalite.http.Put
 
doConnect() - Method in class org.javalite.http.Request
Makes a connection to the remote resource.

E

entityName(int) - Method in class org.javalite.common.XmlEntities
Returns the name of the entity identified by the specified value.
entityValue(String) - Method in class org.javalite.common.XmlEntities
Returns the value of the entity identified by the specified name.
escape(String) - Method in class org.javalite.common.XmlEntities
Escapes the characters in a String.
escape(Writer, String) - Method in class org.javalite.common.XmlEntities
Escapes the characters in the String passed and writes the result to the Writer passed.
ExceptionExpectation<T> - Class in org.javalite.test.jspec
 
ExceptionExpectation(Class<T>) - Constructor for class org.javalite.test.jspec.ExceptionExpectation
 
exec() - Method in class org.javalite.test.jspec.DifferenceExpectation
 
exec() - Method in class org.javalite.test.jspec.ExceptionExpectation
 
expect(ExceptionExpectation<T>) - Static method in class org.javalite.test.jspec.JSpec
 
expect(DifferenceExpectation<T>) - Static method in class org.javalite.test.jspec.JSpec
Expect that the results are different, throw TestException if same.
expect(ExceptionExpectation<T>) - Method in class org.javalite.test.jspec.JSpecSupport
 
expect(DifferenceExpectation<T>) - Method in class org.javalite.test.jspec.JSpecSupport
 
Expectation<T> - Class in org.javalite.test.jspec
 
Expectation(T) - Constructor for class org.javalite.test.jspec.Expectation
 
Expectation() - Constructor for class org.javalite.test.jspec.Expectation
 

G

Get - Class in org.javalite.http
Executes a GET request.
Get(String, int, int) - Constructor for class org.javalite.http.Get
Constructor for making GET requests.
get(String) - Static method in class org.javalite.http.Http
Executes a GET request.
get(String, int, int) - Static method in class org.javalite.http.Http
Executes a GET request
getClazz() - Method in class org.javalite.test.jspec.ExceptionExpectation
 
getExpected() - Method in class org.javalite.test.jspec.DifferenceExpectation
 
getIdName(String) - Static method in class org.javalite.common.Inflector
 
getInputStream() - Method in class org.javalite.http.Request
Returns input stream to read server response from.
getMessage() - Method in exception org.javalite.test.jspec.TestException
 
getOtherName(String, String) - Static method in class org.javalite.common.Inflector
If a table name is made of two other table names (as is typical for many to many relationships), this method retrieves a name of "another" table from a join table name.
getResourceLines(String) - Static method in class org.javalite.common.Util
Returns lines of text of a resource as list.
getStackTraceString(Throwable) - Static method in class org.javalite.common.Util
Converts stack trace to string.
getSystemErr() - Static method in class org.javalite.test.SystemStreamUtil
Returns buffer accumulated with data as string.
getSystemOut() - Static method in class org.javalite.test.SystemStreamUtil
Returns buffer accumulated with data as string.
gsub(String, String, String) - Static method in class org.javalite.common.Inflector
Replaces a found pattern in a word and returns a transformed word.

H

header(String, String) - Method in class org.javalite.http.Request
Sets an HTTP header - call before making a request.
headers() - Method in class org.javalite.http.Request
Returns HTTP headers as sent by server.
Http - Class in org.javalite.http
This is a convenience class to allow creation of request objects on one line with some pre-defined values.
Http() - Constructor for class org.javalite.http.Http
 
HttpException - Exception in org.javalite.http
 
HttpException(String, Throwable) - Constructor for exception org.javalite.http.HttpException
 
HumanDate - Class in org.javalite.common
This is a helper class for converting distance bewteen two dates to a human format, like: "two days", "three months", etc.

I

Inflector - Class in org.javalite.common
 
Inflector() - Constructor for class org.javalite.common.Inflector
 
it(T) - Static method in class org.javalite.test.jspec.JSpec
Works the same way as methods JSpec.the(Object) or JSpec.a(Object), but takes generalized instance as parameter.
it(T) - Method in class org.javalite.test.jspec.JSpecSupport
Wrapper for JSpec.it(T)

J

join(String[], String) - Static method in class org.javalite.common.Util
Joins the items in collection with a delimiter.
join(Collection, String) - Static method in class org.javalite.common.Util
Joins the items in collection with a delimiter.
JSpec - Class in org.javalite.test.jspec
 
JSpec() - Constructor for class org.javalite.test.jspec.JSpec
 
JSpecSupport - Class in org.javalite.test.jspec
This is a class to be extended to gain easy access to JSpec methods.
JSpecSupport() - Constructor for class org.javalite.test.jspec.JSpecSupport
 

L

li(T...) - Static method in class org.javalite.common.Collections
Create a list from values.
list(T...) - Static method in class org.javalite.common.Collections
Create a list from values.

M

main(String[]) - Static method in class org.javalite.http.Delete
 
main(String[]) - Static method in class org.javalite.http.Get
 
main(String[]) - Static method in class org.javalite.http.Post
 
main(String[]) - Static method in class org.javalite.http.Put
 
map(Object...) - Static method in class org.javalite.common.Collections
Create a map from keys and values.
map2Content(Map) - Static method in class org.javalite.http.Http
Converts a map to URL- encoded content.

O

org.javalite.common - package org.javalite.common
 
org.javalite.http - package org.javalite.http
This package contains convenience classes for working with REST services.
org.javalite.test - package org.javalite.test
 
org.javalite.test.jspec - package org.javalite.test.jspec
 

P

pluralize(String) - Static method in class org.javalite.common.Inflector
 
post(String, String) - Static method in class org.javalite.http.Http
Executes a POST request.
post(String, byte[]) - Static method in class org.javalite.http.Http
Executes a POST request.
post(String, byte[], int, int) - Static method in class org.javalite.http.Http
Executes a POST request.
Post - Class in org.javalite.http
Executes a POST request.
Post(String, byte[], int, int) - Constructor for class org.javalite.http.Post
Constructor for making POST requests.
put(String, String) - Static method in class org.javalite.http.Http
Executes a PUT request.
put(String, byte[]) - Static method in class org.javalite.http.Http
Executes a PUT request.
put(String, byte[], int, int) - Static method in class org.javalite.http.Http
Executes a PUT request.
Put - Class in org.javalite.http
Executes a PUT request.
Put(String, byte[], int, int) - Constructor for class org.javalite.http.Put
Constructor for making PUT requests.

R

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.
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.
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
 
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.

S

saveTo(String, InputStream) - Static method in class org.javalite.common.Util
Saves content read from input stream into a 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.
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
Alias to Expectation.shouldBeEqual(Object).
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
This method is exactly opposite (negated) of Expectation.shouldContain(Object).
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, char) - Static method in class org.javalite.common.Util
Splits a string into an array using a 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.
SystemStreamUtil() - Constructor for class org.javalite.test.SystemStreamUtil
 

T

tableize(String) - Static method in class org.javalite.common.Inflector
Converts a camel case to underscore and then pluralizes.
TestException - Exception in org.javalite.test.jspec
 
TestException(String) - 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 class org.javalite.test.jspec.JSpecSupport
 
toBigDecimal(Object) - Static method in class org.javalite.common.Convert
Converts value to BigDecimal if c 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 'y', 't', 'true' or 'yes'.
toBytes(Object) - Static method in class org.javalite.common.Convert
Converts value to bytes array if it can.
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 c 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
This is a convenience method in addition to HumanDate.toHumanFormat(long, long), except the second parameter is always now.
toInteger(Object) - Static method in class org.javalite.common.Convert
Converts value to Integer if c it can.
toLong(Object) - Static method in class org.javalite.common.Convert
Converts value to Long if c 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 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.
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 the value to Timestamp 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 or string with format: yyyy-mm-dd.

U

underscore(String) - Static method in class org.javalite.common.Inflector
Converts a CamelCase string to underscores: "AliceInWonderLand" becomes: "alice_in_wonderland"
unescape(String) - Method in class org.javalite.common.XmlEntities
Unescapes the entities in a String.
unescape(Writer, String) - Method in class org.javalite.common.XmlEntities
Unescapes the escaped entities in the String passed and writes the result to the Writer passed.
url - Variable in class org.javalite.http.Request
 
Util - Class in org.javalite.common
 
Util() - Constructor for class org.javalite.common.Util
 

X

XML - Static variable in class org.javalite.common.XmlEntities
The set of entities supported by standard XML.
XmlEntities - Class in org.javalite.common
Provides XML entity utilities.
XmlEntities() - Constructor for class org.javalite.common.XmlEntities
Default constructor.
XPathHelper - Class in org.javalite.test
Convenience class for pulling information from XML documents.
XPathHelper(String) - Constructor for class org.javalite.test.XPathHelper
Use constructor and instance methods to only parse once and reuse a parsed tree.

A B C D E G H I J L M O P R S T U X

Copyright © 2013. All Rights Reserved.