Skip navigation links
A B C E F G H M P Q R S T U 

A

add(String, String) - Method in class com.sk89q.squirrelid.util.HttpRequest.Form
Add a key/value to the form.
addDashes(String) - Static method in class com.sk89q.squirrelid.util.UUIDs
Add dashes to a UUID.
asBytes() - Method in class com.sk89q.squirrelid.util.HttpRequest.BufferedResponse
Return the result as bytes.
asJson() - Method in class com.sk89q.squirrelid.util.HttpRequest.BufferedResponse
Return the result as an instance of the given class that has been deserialized from a JSON payload.
asString(String) - Method in class com.sk89q.squirrelid.util.HttpRequest.BufferedResponse
Return the result as a string.
asXml(Class<T>) - Method in class com.sk89q.squirrelid.util.HttpRequest.BufferedResponse
Return the result as an instance of the given class that has been deserialized from a XML payload.

B

bodyForm(HttpRequest.Form) - Method in class com.sk89q.squirrelid.util.HttpRequest
Submit form data.
bodyJson(Object) - Method in class com.sk89q.squirrelid.util.HttpRequest
Set the content body to a JSON object with the content type of "application/json".
BukkitPlayerService - Class in com.sk89q.squirrelid.resolver
Checks the list of online players in Bukkit to find UUIDs.

C

CacheForwardingService - Class in com.sk89q.squirrelid.resolver
Resolves UUIDs using another resolver and stores results to a cache.
CacheForwardingService(ProfileService, ProfileCache) - Constructor for class com.sk89q.squirrelid.resolver.CacheForwardingService
Create a new instance.
close() - Method in class com.sk89q.squirrelid.util.HttpRequest
 
com.sk89q.squirrelid - package com.sk89q.squirrelid
 
com.sk89q.squirrelid.cache - package com.sk89q.squirrelid.cache
 
com.sk89q.squirrelid.resolver - package com.sk89q.squirrelid.resolver
 
com.sk89q.squirrelid.util - package com.sk89q.squirrelid.util
 
CombinedProfileService - Class in com.sk89q.squirrelid.resolver
Combines several ProfileServices together and checks them from first to last, stopping when there are no more services left to query or all profiles were found.
CombinedProfileService(List<ProfileService>) - Constructor for class com.sk89q.squirrelid.resolver.CombinedProfileService
Create a new instance.
CombinedProfileService(ProfileService...) - Constructor for class com.sk89q.squirrelid.resolver.CombinedProfileService
Create a new instance.

E

elements - Variable in class com.sk89q.squirrelid.util.HttpRequest.Form
 
equals(Object) - Method in class com.sk89q.squirrelid.Profile
 
execute() - Method in class com.sk89q.squirrelid.util.HttpRequest
Execute the request.
executeGet(Iterable<UUID>) - Method in class com.sk89q.squirrelid.cache.SQLiteCache
 
executePut(Iterable<Profile>) - Method in class com.sk89q.squirrelid.cache.SQLiteCache
 
expectResponseCode(int...) - Method in class com.sk89q.squirrelid.util.HttpRequest
Require that the response code is one of the given response codes.

F

findAllByName(Iterable<String>) - Method in class com.sk89q.squirrelid.resolver.CacheForwardingService
 
findAllByName(Iterable<String>, Predicate<Profile>) - Method in class com.sk89q.squirrelid.resolver.CacheForwardingService
 
findAllByName(Iterable<String>) - Method in class com.sk89q.squirrelid.resolver.CombinedProfileService
 
findAllByName(Iterable<String>, Predicate<Profile>) - Method in class com.sk89q.squirrelid.resolver.CombinedProfileService
 
findAllByName(Iterable<String>, Predicate<Profile>) - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
 
findAllByName(Iterable<String>) - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
 
findAllByName(Iterable<String>) - Method in class com.sk89q.squirrelid.resolver.ParallelProfileService
 
findAllByName(Iterable<String>, Predicate<Profile>) - Method in class com.sk89q.squirrelid.resolver.ParallelProfileService
 
findAllByName(Iterable<String>) - Method in interface com.sk89q.squirrelid.resolver.ProfileService
Query the profile server for UUIDs for the given names.
findAllByName(Iterable<String>, Predicate<Profile>) - Method in interface com.sk89q.squirrelid.resolver.ProfileService
Query the profile server for UUIDs for the given names.
findByName(String) - Method in class com.sk89q.squirrelid.resolver.BukkitPlayerService
 
findByName(String) - Method in class com.sk89q.squirrelid.resolver.CacheForwardingService
 
findByName(String) - Method in class com.sk89q.squirrelid.resolver.CombinedProfileService
 
findByName(String) - Method in class com.sk89q.squirrelid.resolver.HashMapService
 
findByName(String) - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
 
findByName(String) - Method in class com.sk89q.squirrelid.resolver.ParallelProfileService
 
findByName(String) - Method in interface com.sk89q.squirrelid.resolver.ProfileService
Query the profile server for the UUID of a name.
form() - Static method in class com.sk89q.squirrelid.util.HttpRequest.Form
Create a new form.
forMinecraft() - Static method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
Create a resolver for Minecraft.

G

get(URL) - Static method in class com.sk89q.squirrelid.util.HttpRequest
Perform a GET request.
getAllPresent(Iterable<UUID>) - Method in class com.sk89q.squirrelid.cache.HashMapCache
 
getAllPresent(Iterable<UUID>) - Method in interface com.sk89q.squirrelid.cache.ProfileCache
Query the cache for the names of the given UUIDs.
getAllPresent(Iterable<UUID>) - Method in class com.sk89q.squirrelid.cache.SQLiteCache
 
getConnection() - Method in class com.sk89q.squirrelid.cache.SQLiteCache
Get the connection.
getEffectiveProfilesPerJob() - Method in class com.sk89q.squirrelid.resolver.ParallelProfileService
Get the number or profiles to execute per job.
getIdealRequestLimit() - Method in class com.sk89q.squirrelid.resolver.BukkitPlayerService
 
getIdealRequestLimit() - Method in class com.sk89q.squirrelid.resolver.CacheForwardingService
 
getIdealRequestLimit() - Method in class com.sk89q.squirrelid.resolver.CombinedProfileService
 
getIdealRequestLimit() - Method in class com.sk89q.squirrelid.resolver.HashMapService
 
getIdealRequestLimit() - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
 
getIdealRequestLimit() - Method in class com.sk89q.squirrelid.resolver.ParallelProfileService
 
getIdealRequestLimit() - Method in interface com.sk89q.squirrelid.resolver.ProfileService
Get the optimal maximum number of profiles that can be found with one findAllByName(Iterable) call.
getIfPresent(UUID) - Method in interface com.sk89q.squirrelid.cache.ProfileCache
Query the cache for the name for a given UUID.
getInputStream() - Method in class com.sk89q.squirrelid.util.HttpRequest
Get the input stream.
getInstance() - Static method in class com.sk89q.squirrelid.resolver.BukkitPlayerService
 
getMaxRetries() - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
Get the maximum number of HTTP request retries.
getName() - Method in class com.sk89q.squirrelid.Profile
Get the user's name.
getProfilesPerJob() - Method in class com.sk89q.squirrelid.resolver.ParallelProfileService
Get the upper bound number of profiles to find per thread.
getResponseCode() - Method in class com.sk89q.squirrelid.util.HttpRequest
Get the response code.
getRetryDelay() - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
Get the number of milliseconds to delay after each failed HTTP request, doubling each time until success or total failure.
getUniqueId() - Method in class com.sk89q.squirrelid.Profile
Get the user's UUID.

H

hashCode() - Method in class com.sk89q.squirrelid.Profile
 
HashMapCache - Class in com.sk89q.squirrelid.cache
A MemoryCache stores entries in a ConcurrentMap.
HashMapCache() - Constructor for class com.sk89q.squirrelid.cache.HashMapCache
 
HashMapService - Class in com.sk89q.squirrelid.resolver
A ProfileService backed by a ConcurrentHashMap.
HashMapService() - Constructor for class com.sk89q.squirrelid.resolver.HashMapService
Create a new instance.
HashMapService(Map<String, UUID>) - Constructor for class com.sk89q.squirrelid.resolver.HashMapService
Create a new instance and add the entries of the given map to the internal map.
header(String, String) - Method in class com.sk89q.squirrelid.util.HttpRequest
Add a header.
HttpRepositoryService - Class in com.sk89q.squirrelid.resolver
Resolves names in bulk to UUIDs using Mojang's profile HTTP API.
HttpRepositoryService(String) - Constructor for class com.sk89q.squirrelid.resolver.HttpRepositoryService
Create a new resolver.
HttpRequest - Class in com.sk89q.squirrelid.util
A simple fluent interface for performing HTTP requests that uses HttpURLConnection or HttpsURLConnection.
HttpRequest.BufferedResponse - Class in com.sk89q.squirrelid.util
Used to buffer the response in memory.
HttpRequest.Form - Class in com.sk89q.squirrelid.util

M

MINECRAFT_AGENT - Static variable in class com.sk89q.squirrelid.resolver.HttpRepositoryService
 

P

ParallelProfileService - Class in com.sk89q.squirrelid.resolver
Resolves profiles with several parallel threads using another resolver.
ParallelProfileService(ProfileService, ExecutorService) - Constructor for class com.sk89q.squirrelid.resolver.ParallelProfileService
Create a new parallel resolver.
ParallelProfileService(ProfileService, int) - Constructor for class com.sk89q.squirrelid.resolver.ParallelProfileService
Create a new parallel resolver.
post(URL) - Static method in class com.sk89q.squirrelid.util.HttpRequest
Perform a POST request.
Profile - Class in com.sk89q.squirrelid
A pairing of a user's UUID and his or her username.
Profile(UUID, String) - Constructor for class com.sk89q.squirrelid.Profile
Create a new instance.
ProfileCache - Interface in com.sk89q.squirrelid.cache
Stores a "last known" mapping of UUIDs to names.
ProfileService - Interface in com.sk89q.squirrelid.resolver
Resolves names into UUIDs.
put(Profile) - Method in interface com.sk89q.squirrelid.cache.ProfileCache
Store the given name as the last known name for the given UUID.
put(Profile) - Method in class com.sk89q.squirrelid.resolver.HashMapService
Add the given profile to the internal map.
putAll(Iterable<Profile>) - Method in class com.sk89q.squirrelid.cache.HashMapCache
 
putAll(Iterable<Profile>) - Method in interface com.sk89q.squirrelid.cache.ProfileCache
Store a list of zero or more names.
putAll(Iterable<Profile>) - Method in class com.sk89q.squirrelid.cache.SQLiteCache
 
putAll(Collection<Profile>) - Method in class com.sk89q.squirrelid.resolver.HashMapService
Add the given profiles to the internal map.

Q

query(Iterable<String>) - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
Perform a query for profiles without partitioning the queries.

R

request(String, URL) - Static method in class com.sk89q.squirrelid.util.HttpRequest
Perform a request.
returnContent() - Method in class com.sk89q.squirrelid.util.HttpRequest
Buffer the returned response.

S

saveContent(File) - Method in class com.sk89q.squirrelid.util.HttpRequest.BufferedResponse
Save the result to a file.
saveContent(OutputStream) - Method in class com.sk89q.squirrelid.util.HttpRequest.BufferedResponse
Save the result to an output stream.
saveContent(File) - Method in class com.sk89q.squirrelid.util.HttpRequest
Save the result to a file.
saveContent(OutputStream) - Method in class com.sk89q.squirrelid.util.HttpRequest
Save the result to an output stream.
setMaxRetries(int) - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
Set the maximum number of HTTP request retries.
setName(String) - Method in class com.sk89q.squirrelid.Profile
Create a copy of this profile but with a new name.
setProfilesPerJob(int) - Method in class com.sk89q.squirrelid.resolver.ParallelProfileService
Set the upper bound number of profiles to find per thread.
setRetryDelay(long) - Method in class com.sk89q.squirrelid.resolver.HttpRepositoryService
Set the number of milliseconds to delay after each failed HTTP request, doubling each time until success or total failure.
setUniqueId(UUID) - Method in class com.sk89q.squirrelid.Profile
Create a copy of this profile but with a new UUID.
SQLiteCache - Class in com.sk89q.squirrelid.cache
An implementation of a UUID cache using a SQLite database.
SQLiteCache(File) - Constructor for class com.sk89q.squirrelid.cache.SQLiteCache
Create a new instance.

T

toString() - Method in class com.sk89q.squirrelid.Profile
 
toString() - Method in class com.sk89q.squirrelid.util.HttpRequest.Form
 

U

url(String) - Static method in class com.sk89q.squirrelid.util.HttpRequest
Create a new URL and throw a RuntimeException if the URL is not valid.
UUIDs - Class in com.sk89q.squirrelid.util
Utility methods for UUIDs.
A B C E F G H M P Q R S T U 
Skip navigation links

Copyright © 2014. All Rights Reserved.