Package | Description |
---|---|
io.toro.martini | |
io.toro.martini.exception | |
io.toro.martini.jabber.model | |
io.toro.martini.util |
Modifier and Type | Method and Description |
---|---|
static String |
MarshallerMethods.asJSON(Object o)
Marshal an object into a JSON string.
|
static String |
MarshallerMethods.asXML(Object o)
Marshal an object into a JSON string.
|
static <T> T |
CoreMethods.bean(String name)
Deprecated.
|
static String |
VfsMethods.copyTo(String sourceUrl,
String targetUrl)
Copy the item found in the source url to the target url.
|
static JabberConnection |
JabberMethods.createJabberConnection(String name,
Map configuration)
Create a Jabber connection using the provided configuration.
|
static JabberConnection |
JabberMethods.createJabberConnection(String name,
Map configuration,
groovy.lang.Closure closure)
Create a Jabber connection using the provided configuration.
|
static <T> T |
CsvMethods.eachRecord(File self,
char delimiter,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
groovy.lang.Closure<T> closure)
Parse a CSV file.
|
static <T> T |
CsvMethods.eachRecord(File self,
CSVFormat format,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
char delimiter,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
groovy.lang.Closure<T> closure)
Parse a CSV file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
CSVFormat format,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
int sheet,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
List indexes,
groovy.lang.Closure<T> closure)
Parse a fixed-width file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
int firstLine,
List indexes,
groovy.lang.Closure<T> closure)
Parse a fixed-width file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
char delimiter,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
CSVFormat format,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
char delimiter,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
CSVFormat format,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
int sheet,
groovy.lang.Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(Reader self,
int firstLine,
List indexes,
groovy.lang.Closure<T> closure)
Parse a fixed-width file.
|
static String |
StringMethods.encrypt(String plainKey)
Encrypt the plain text password.
|
static FileObject |
VfsMethods.file(String url)
Gets the
FileObject of a file that's on a virtual file system. |
static FileObject |
VfsMethods.file(String url,
Map properties)
Gets the
FileObject of a file that's on a virtual file system. |
static <T> T |
MarshallerMethods.fromJSON(File jsonFile,
Class<T> returnType)
Unmarshal the JSON content of a file to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromJSON(InputStream jsonInputStream,
Class<T> returnType)
Unmarshal the JSON content of a stream to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromJSON(Reader jsonReader,
Class<T> returnType)
Unmarshal the JSON content of a reader to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromJSON(String jsonString,
Class<T> returnType)
Unmarshal a JSON string to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromJSON(URL jsonURL,
Class<T> returnType)
Unmarshal the JSON document located in the provided URL, to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromXML(File xmlFile,
Class<T> returnType)
Unmarshal the XML content of a file to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromXML(InputStream xmlInputStream,
Class<T> returnType)
Unmarshal the XML content of a stream to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromXML(Reader xmlReader,
Class<T> returnType)
Unmarshal the XML content of a reader to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromXML(String xmlString,
Class<T> returnType)
Unmarshal an XML string to an instance of the provided type.
|
static <T> T |
MarshallerMethods.fromXML(URL xmlURL,
Class<T> returnType)
Unmarshal the XML document located in the provided URL, to an instance of the provided type.
|
static io.toro.gloop.object.property.GloopModel |
VfsMethods.getVfsFile(String url,
io.toro.gloop.object.property.GloopModel vfsFileSystemOptions,
io.toro.gloop.engine.GloopExecutionContext context)
Gets the
FileObject of a file that's on a virtual file system. |
static String |
HttpClientMethods.http(String uri)
Send an HTTP GET request.
|
static String |
HttpClientMethods.http(String uri,
groovy.lang.Closure<String> body)
Send an HTTP POST request.
|
static String |
HttpClientMethods.http(String uri,
Map params)
Send an HTTP request.
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers)
Send an HTTP request.
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers,
byte[] body)
Send an HTTP request.
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers,
groovy.lang.Closure<String> body)
Send an HTTP request.
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers,
String body)
Send an HTTP request.
|
static String |
HttpClientMethods.http(String uri,
String body)
Send an HTTP POST request.
|
static void |
JabberMethods.jabber(String endpointName,
groovy.lang.Closure closure)
Invoke a closure which can operate on a provided
JabberConnection object. |
static void |
JabberMethods.jabberChat(String endpointName,
String jid,
groovy.lang.Closure closure)
Invoke a closure which can operate on a provided
Chat object. |
static void |
JabberMethods.jabberGroupchat(String endpointName,
String roomJID,
groovy.lang.Closure closure)
Invoke a closure which can operate on a provided
MultiUserChat object. |
static <T> T |
CoreMethods.jndi(String name)
Get an object from the JNDI context of the instace.
|
static io.toro.gloop.object.property.GloopModel |
EmailMethods.readEmail(String protocol,
String login,
String password,
String host,
int port,
String folder,
boolean delete,
boolean debug)
Read an email.
|
static Message[] |
VfsMethods.receive(String url)
Retrieve an array of unread email messages.
|
static Message[] |
VfsMethods.receive(String url,
boolean delete)
Retrieve an array of unused email messages.
|
static String |
CoreMethods.resolveCode(String localeISO,
MessageSourceResolvable resolvable)
Try to resolve the message using all the attributes contained within the
MessageSourceResolvable argument
that was passed in. |
static String |
CoreMethods.resolveCode(String localeISO,
String code,
Object... args)
Try to resolve the message.
|
static String |
CoreMethods.resolveCode(String localeISO,
String code,
String defaultMessage,
Object... args)
Try to resolve the message.
|
static byte[] |
VfsMethods.send(String url,
byte[] data)
Sends bytes of data to a remote location.
|
static byte[] |
VfsMethods.send(String url,
byte[] data,
Map properties)
Sends bytes of data to a remote location.
|
static File |
VfsMethods.send(String url,
File file)
Sends a file to a remote location.
|
static void |
VfsMethods.send(String url,
InputStream is)
Sends stream to a remote location.
|
static File |
VfsMethods.send(String url,
Map properties,
File file)
Sends a file to a remote location.
|
static void |
VfsMethods.send(String url,
Map properties,
InputStream is)
Sends a stream to a remote location.
|
static void |
VfsMethods.send(String url,
Map properties,
Reader reader)
Sends the contents of a reader to a remote location.
|
static void |
VfsMethods.send(String url,
Map properties,
Reader data,
List<DataSource> attachment)
Sends bytes of data to a remote location.
|
static String |
VfsMethods.send(String url,
Map properties,
String data)
Sends string to a remote location.
|
static String |
VfsMethods.send(String url,
Map properties,
String data,
List<DataSource> attachment)
Sends string to a remote location.
|
static void |
VfsMethods.send(String url,
Reader reader)
Sends the contents of a reader to a remote location.
|
static String |
VfsMethods.send(String url,
String data)
Sends string to a remote location.
|
static io.toro.gloop.object.property.GloopModel |
EmailMethods.sendEmail(String protocol,
String login,
String password,
String server,
int port,
String from,
List<io.toro.gloop.object.property.GloopModel> to,
List<io.toro.gloop.object.property.GloopModel> cc,
List<io.toro.gloop.object.property.GloopModel> bcc,
String subject,
boolean isHtml,
String body,
List attachments,
List<io.toro.gloop.object.property.GloopModel> headers)
Send an email.
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
Object bcc,
String subject)
Send an email.
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
Object bcc,
String subject,
List<DataSource> attachments)
Send an email.
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
String subject)
Send an email.
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
String subject,
List<DataSource> attachments)
Send an email.
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
String subject)
Send an email.
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
String subject,
List<DataSource> attachments)
Send an email.
|
static void |
JabberMethods.sendGroupMessage(String endpointName,
String nickname,
String roomJID,
boolean leaveOnFinish,
String message)
Send a message to a chat room.
|
static void |
JabberMethods.sendGroupMessage(String endpointName,
String nickname,
String password,
String roomJID,
boolean leaveOnFinish,
String message)
Send a message to a chatroom.
|
static void |
JabberMethods.sendMessage(String endpointName,
String jid,
String message)
Send a message to a user.
|
static byte[] |
VfsMethods.sendTo(byte[] data,
String url)
Sends bytes of data to a remote location.
|
static File |
VfsMethods.sendTo(File file,
String url)
Sends a file to a remote location.
|
static File |
VfsMethods.sendTo(File file,
String url,
Map properties)
Sends a file to a remote location.
|
static void |
VfsMethods.sendTo(InputStream is,
String url)
Sends stream to a remote location.
|
static void |
VfsMethods.sendTo(InputStream is,
String url,
Map properties)
Sends a stream to a remote location.
|
static void |
VfsMethods.sendTo(Reader reader,
String url)
Sends the contents of a reader to a remote location.
|
static void |
VfsMethods.sendTo(Reader reader,
String url,
Map properties)
Sends the contents of a reader to a remote location.
|
static byte[] |
VfsMethods.sendTo(String url,
Map properties,
byte[] data)
Sends bytes of data to a remote location.
|
static String |
VfsMethods.sendTo(String data,
String url)
Sends string to a remote location.
|
static String |
VfsMethods.sendTo(String data,
String url,
Map properties)
Sends string to a remote location.
|
static io.toro.martini.solr.MartiniSolrClient |
SolrMethods.solr(String coreName)
Get the
SolrClient of a named Solr core, belonging to the package in the current context. |
static String |
VfsMethods.vfsGet(String url)
Gets the string content of a file that's on a virtual file system.
|
static String |
VfsMethods.vfsGet(String url,
Map properties)
Gets the string content of a file that's on a virtual file system.
|
static byte[] |
VfsMethods.vfsGetBytes(String url)
Gets the byte array content of a file that's on a virtual file system.
|
static byte[] |
VfsMethods.vfsGetBytes(String url,
Map properties)
Gets the stream of a file that's on a virtual file system.
|
static File |
VfsMethods.vfsGetFile(String url,
String filename)
Gets the content of a file that's on a virtual file system and writes it to the given file.
|
static File |
VfsMethods.vfsGetFile(String url,
String filename,
Map properties)
Writes a file from a virtual file system to the local file system.
|
static InputStream |
VfsMethods.vfsGetInputStream(String url)
Gets the stream of a file that's on a virtual file system.
|
static void |
VfsMethods.vfsGetInputStream(String url,
groovy.lang.Closure closure)
Executes a closure upon fetching the stream of a file that's on a virtual file system.
|
static InputStream |
VfsMethods.vfsGetInputStream(String url,
Map properties)
Gets the stream of a file that's on a virtual file system.
|
static void |
VfsMethods.vfsGetInputStream(String url,
Map properties,
groovy.lang.Closure closure)
Executes a closure upon fetching the stream of a file that's on a virtual file system.
|
static void |
VfsMethods.vfsPut(String url,
byte[] data)
Alias for
VfsMethods.send(String, byte[]) . |
static void |
VfsMethods.vfsPut(String url,
byte[] data,
Map properties)
Alias for
#send(String, byte[], Map . |
static void |
VfsMethods.vfsPut(String url,
InputStream data)
Alias for
#send(String, InputStream . |
static void |
VfsMethods.vfsPut(String url,
InputStream data,
Map properties)
Alias for
VfsMethods.send(String, Map, InputStream) . |
static void |
VfsMethods.vfsPut(String url,
String data)
Alias for
VfsMethods.send(String, String) . |
static void |
VfsMethods.vfsPut(String url,
String data,
Map properties)
Alias for
VfsMethods.send(String, Map, String) . |
Modifier and Type | Class and Description |
---|---|
class |
UserUnauthorizedException |
Modifier and Type | Method and Description |
---|---|
ToroException |
ToroException.setDefaultMessage(String defaultMessage)
Deprecated.
|
ToroException |
ToroException.setMessageArgs(Object... messageArgs)
Deprecated.
|
ToroException |
ToroException.setMessageCode(String... messageCode)
Deprecated.
|
ToroException |
ToroException.setMessageResolverArguments(String[] messageCode,
Object[] messageArgs,
String defaultMessage)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration |
JabberConnection.buildConfiguration(Map configuration)
Creates a jabber based on the configuration map provided
Properties for configuring jabber connection
NOTE THIS IS FOR ENDPOINT ONLY
{ Key: replyServiceResponse, Type: - Set
to true if service response will return its object to the sender. |
Constructor and Description |
---|
JabberConnection(String name,
Map configuration) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
BeanUtils.getBean(Class<T> clazz) |
static <T> T |
BeanUtils.getBean(String name) |
static <T> T |
ApplicationUtils.getBean(String name) |
static <T> T |
BeanUtils.getBean(String name,
MartiniPackage martiniPackage) |
static <T> T |
ApplicationUtils.getJNDIObject(String path) |
static void |
ApplicationUtils.unbindJNDIObject(String path) |
Copyright © 2020. All rights reserved.