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
alreadyExists(StackTraceElement, StackTraceElement) - Method in JsonCommandServlet
asType(Class) - Method in Envelope

B

buildLogMessages(Throwable, String) - Method in JsonCommandServlet
buildStack(Throwable, String) - Method in JsonCommandServlet

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

objectToMap(Object) - Method in ConfigurationProvider
Convert an Object to a Map.

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
status - Property in Envelope

T

trace(StackTraceElement, StackTraceElement) - Method in JsonCommandServlet
trimStack(Throwable, String) - Method in JsonCommandServlet

U

V

W

writeResponse(HttpServletRequest, HttpServletResponse, Envelope) - 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 _