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
allowedMethods - Field in NCubeConfigurationProvider
appId - Field in NCubeConfigurationProvider
arrayBuilder(Class<T>, Collection) - Method in ConfigurationProvider
Convert Collection to a Java (typed) array [].
ATTRIBUTE_FAIL_MESSAGE - Field in JsonCommandServlet
ATTRIBUTE_STATUS - Field in JsonCommandServlet

B

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

C

callController(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.
callMethod(Method, Object, Object) - Method in ConfigurationProvider
Invoke the passed in method, on the passed in target, with the passed in arguments.
cmdUrlPattern2 - Field in ConfigurationProvider
cmdUrlPattern - Field in ConfigurationProvider
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
ControllerClass - Annotation Type in com.cedarsoftware.servlet
Authors:
John DeRegnaucourt ([email protected])
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.
ControllerMethod - Annotation Type in com.cedarsoftware.servlet
Authors:
John DeRegnaucourt ([email protected])
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 ([email protected])
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) - Constructor 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(String) - Method in NCubeConfigurationProvider
@param cubeName String name of an NCube.
getController(String) - Method in SpringConfigurationProvider
@param name String name of a Controller instance (Spring bean name, n-cube name, etc).
getDeepestException(Throwable) - Method in JsonCommandServlet
Get the deepest (original cause) of the exception chain.
getLogPrefix() - Method in ConfigurationProvider
@return String prefix to append to log so that we can tell what controller type was used (spring:, ncube:, etc.)
getLogPrefix() - Method in NCubeConfigurationProvider
@return String 'ncube' to indicate that an N-Cube controller was used.
getLogPrefix() - Method in SpringConfigurationProvider
@return String 'spring' to indicate that a Spring controller was used.
getMethod(Class, String, int) - Method in ConfigurationProvider
Reflectively find the requested method on the requested class.
getProvider(HttpServletRequest, String) - Method in JsonCommandServlet
@param request HttpServletRequest passed to the command servlet.
getServletConfig() - Method in ConfigurationProvider
getUrlMatcher(HttpServletRequest) - Method in ConfigurationProvider
Get a regex Matcher that matches the URL String for /context/controller/method

H

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

I

init() - Method in JsonCommandServlet
isMethodAllowed(String) - Method in ConfigurationProvider
Verify that the passed in method is allowed to be called remotely.
isMethodAllowed(String) - Method in NCubeConfigurationProvider
Only read-only methods can be called.
isMethodAllowed(String) - Method in SpringConfigurationProvider
All controller methods are allowed by default.

J

JsonCommandServlet - Class in com.cedarsoftware.servlet
This class will accept JSON REST requests, find the named Spring Bean, find the method, and then invoke the method.
JsonCommandServlet() - Constructor in JsonCommandServlet

K

L

LOG - Field in ConfigurationProvider
LOG - Field in JsonCommandServlet
LOG - Field in NCubeConfigurationProvider
LOG - Field in SpringConfigurationProvider

M

methodMap - Field in ConfigurationProvider

N

nCubeCfgProvider - Field in JsonCommandServlet
NCubeConfigurationProvider - Class in com.cedarsoftware.servlet
Authors:
John DeRegnaucourt ([email protected])
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.
NCubeConfigurationProvider(ServletConfig) - Constructor in NCubeConfigurationProvider

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 SpringConfigurationProvider
springCfgProvider - Field in JsonCommandServlet
SpringConfigurationProvider - Class in com.cedarsoftware.servlet
Spring configuration provider for the JsonCommandServlet.
SpringConfigurationProvider(ServletConfig) - Constructor in SpringConfigurationProvider
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 _