Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2014 Philip Helger ( philip[at]helger[dot]com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package com.helger.webbasics.ajax;
Base interface for a single AJAX function handler.

Philip Helger
public interface IAjaxExecutor
Initialization method that is called before the main execution is called. This can e.g be used to determine the last modification date time.

aRequestScope The request scope to be used, to extract parameters. Never null.
  void initExecution (@Nonnull IRequestWebScopeWithoutResponse aRequestScope);

Registers all external resources (CSS or JS files) needed by controls potentially spawned by an AJAX request of this handler. This method is called BEFORE handleRequest(com.helger.webscopes.domain.IRequestWebScopeWithoutResponse) is invoked!
  void registerExternalResources ();

Called to handle a specific request.

aRequestScope the request scope values to be used
the result object. May never be null
java.lang.Exception Any exception if an error occurs.
New to GrepCode? Check out our FAQ X