| java.lang.Object org.xins.common.manageable.Manageable org.xins.server.CallingConventionManager
CALLING_CONVENTION_PARAMETER | final static String CALLING_CONVENTION_PARAMETER(Code) | | The name of the request parameter that specifies the name of the calling
convention to use.
|
JSON_RPC_CALLING_CONVENTION | final public static String JSON_RPC_CALLING_CONVENTION(Code) | | The name of the JSON-RPC calling convention.
since: XINS 2.0. |
CallingConventionManager | CallingConventionManager(API api)(Code) | | Creates a CallingConventionManager for the specified API.
Parameters: api - the API, cannot be null . |
detectCallingConvention | CallingConvention detectCallingConvention(HttpServletRequest request) throws InvalidRequestException(Code) | | Attempts to detect which calling convention is the most appropriate for
an incoming request. This method is called when the calling convention
is not explicitly specified in the request.
The
CallingConvention.matchesRequest(HttpServletRequest) method is used to determine which calling conventions match. Then
the following algorithm is used to chose one:
- if the default calling convention matches, use that;
- otherwise if the
XSLTCallingConvention matches and at
least one of the parameters specific for the this calling
convention is set, then use it;
- otherwise if the
StandardCallingConvention matches, use
that;
- otherwise if there is exactly one other calling convention that
matches, use that one;
- if none of the calling conventions match, throw an
InvalidRequestException , indicating that no match could
be found;
- if multiple calling conventions match, throw an
InvalidRequestException , indicating that several matches
were found;
Parameters: request - the incoming request, cannot be null .the calling convention to use, never null . throws: InvalidRequestException - if the request is considered invalid, for example because the callingconvention specified in the request is unknown. |
getCallingConvention | CallingConvention getCallingConvention(HttpServletRequest request) throws InvalidRequestException(Code) | | Determines the calling convention to use for the specified request.
Parameters: request - the incoming request, cannot be null .the calling convention to use, never null . throws: InvalidRequestException - if the request is considered invalid, for example because the callingconvention specified in the request is unknown. |
getCallingConvention2 | CallingConvention getCallingConvention2(String name)(Code) | | Gets the calling convention for the given name, or null if
the calling convention is not found or not usable.
The returned calling convention is bootstrapped and initialized.
Parameters: name - the name of the calling convention to retrieve, should not benull .the calling convention, or null . |
getSupportedMethods | final Set getSupportedMethods() throws IllegalStateException(Code) | | Returns the set of HTTP methods supported for function invocations. This
is the union of the methods supported by the individual calling
conventions for invoking functions, so excluding the OPTIONS
method. The latter cannot be used for function invocations, only to
determine which HTTP methods are available. See
CallingConvention.getSupportedMethods .
the Set of supported HTTP methods, never null . throws: IllegalStateException - if this calling convention manager is not yet bootstrapped andinitialized, see CallingConventionManager.isUsable(). |
Methods inherited from org.xins.common.manageable.Manageable | final protected void assertUsable() throws IllegalStateException(Code)(Java Doc) final public void bootstrap(PropertyReader properties) throws IllegalStateException, MissingRequiredPropertyException, InvalidPropertyValueException, BootstrapException(Code)(Java Doc) protected void bootstrapImpl(PropertyReader properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, BootstrapException(Code)(Java Doc) final public void deinit() throws IllegalStateException, DeinitializationException(Code)(Java Doc) protected void deinitImpl() throws Throwable(Code)(Java Doc) final public State getState()(Code)(Java Doc) final public void init(PropertyReader properties) throws IllegalStateException, MissingRequiredPropertyException, InvalidPropertyValueException, InitializationException(Code)(Java Doc) protected void initImpl(PropertyReader properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, InitializationException(Code)(Java Doc) final public boolean isBootstrapped()(Code)(Java Doc) final public boolean isUsable()(Code)(Java Doc)
|
|
|