A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

allow() - Method in ControllerMethod
arrayBuilder(Class<T>, Collection) - Method in ConfigurationProvider
Convert Collection to a Java (typed) array [].

B

buildResponse(HttpServletRequest, HttpServletResponse, Envelope) - Method in JsonCommandServlet
Build the response envelope as a String to be returned to the client.

C

callController(Object, HttpServletRequest, String) - Method in ConfigurationProvider
Read the JSON request (susceptible to Exceptions that are allowed to be thrown from here), and then call the appropriate Controller method.
cmdUrlPattern2 - Field in ConfigurationProvider
cmdUrlPattern - Field in ConfigurationProvider
configProvider - Field in JsonCommandServlet
ConfigurationProvider - Class in com.cedarsoftware.servlet
Implement controller provider.
ConfigurationProvider.CmdReader - Class in com.cedarsoftware.servlet
Extend JsonReader to gain access to the convertParsedMapsToJava() API.
ConfigurationProvider.CmdReader() - Constructor in ConfigurationProvider.CmdReader
ConfigurationProvider(ServletConfig) - Constructor in ConfigurationProvider
ControllerMethod - Annotation Type in com.cedarsoftware.servlet
Authors:
John DeRegnaucourt (jdereg@gmail.com)
Copyright (c) Cedar Software LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
convertArgs(Method, Object) - Method in ConfigurationProvider
Convert the passed in arguments to match the arguments of the passed in method.
convertParsedMapsToJava(JsonObject) - Method in ConfigurationProvider.CmdReader

D

data - Property in Envelope
doGet(HttpServletRequest, HttpServletResponse) - Method in JsonCommandServlet
Handle JSON GET style request.
doPost(HttpServletRequest, HttpServletResponse) - Method in JsonCommandServlet
Process JSON POST style where the controller, method, and arguments are passed in as the POST data.

E

Envelope - Class in com.cedarsoftware.servlet
Authors:
John DeRegnaucourt (jdereg@gmail.com)
Copyright (c) Cedar Software LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Envelope(Object, boolean, Throwable) - Constructor in Envelope
exception - Property in Envelope

F

G

getArguments(String, String, String) - Method in ConfigurationProvider
Build the argument list from the passed in json
getController(String) - Method in ConfigurationProvider
Fetch the controller with the given name.
getController(HttpServletRequest, String) - Method in JsonCommandServlet
@param request HttpServletRequest passed to the command servlet.
getDeepestException(Throwable) - Method in JsonCommandServlet
Get the deepest (original cause) of the exception chain.
getExceptionAsJsonObjectString(Throwable) - Method in JsonCommandServlet
getMethod(Class, String, int) - Method in ConfigurationProvider
Reflectively find the requested method on the requested class.
getServletConfig() - Method in ConfigurationProvider
getUrlMatcher(HttpServletRequest) - Method in ConfigurationProvider
Get a regex Matcher that matches the URL String for /context/cmd/controller/method

H

handleRequestAndResponse(HttpServletRequest, HttpServletResponse, String) - Method in JsonCommandServlet
This is the main driver of the command servlet.

I

init() - Method in JsonCommandServlet

J

JsonCommandServlet - Class in com.cedarsoftware.servlet
JsonCommandServlet() - Constructor in JsonCommandServlet

K

L

LOG - Field in JsonCommandServlet

M

methodMap - Field in ConfigurationProvider

N

O

P

Q

R

removeThreadLocals() - Method in JsonCommandServlet
Remove ThreadLocals containing HttpServletRequest and response so that when thread is returned to threadpool there are no lingering references to these values.
route(HttpServletRequest, HttpServletResponse) - Method in JsonCommandServlet
If using UrlRewrite from tuckey.org, then route HTTP Json commands via this 'route' method and list it in the urlrewrite.xml.

S

sendJsonResponse(HttpServletRequest, HttpServletResponse, Envelope) - Method in JsonCommandServlet
Build and send the response Envelope to the client.
servletConfig - Field in ConfigurationProvider
servletRequest - Field in JsonCommandServlet
servletResponse - Field in JsonCommandServlet
springAppCtx - Field in ConfigurationProvider
stackToString(Throwable, String) - Method in JsonCommandServlet
Get a LOG friendly stack trace as a String, trimmed to begin with the first element that 'contains()' matches startPattern.
status - Property in Envelope

T

U

V

W

writeResponse(HttpServletRequest, HttpServletResponse, String) - Method in JsonCommandServlet
Write the response Envelope to the client

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _