/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.jsonwebservice;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
/**
* @author Igor Spasic
*/
public interface JSONWebServiceActionsManager {
public Set<String> getContextNames();
public JSONWebServiceAction getJSONWebServiceAction(
HttpServletRequest request)
throws NoSuchJSONWebServiceException;
public JSONWebServiceAction getJSONWebServiceAction(
HttpServletRequest request, String path, String method,
Map<String, Object> parameters)
throws NoSuchJSONWebServiceException;
public JSONWebServiceActionMapping getJSONWebServiceActionMapping(
String signature);
public List<JSONWebServiceActionMapping> getJSONWebServiceActionMappings(
String contextName);
public int getJSONWebServiceActionsCount(String contextName);
public JSONWebServiceNaming getJSONWebServiceNaming();
public void registerJSONWebServiceAction(
String contextName, String contextPath, Class<?> actionClass,
Method actionMethod, String path, String method);
public void registerJSONWebServiceAction(
String contextName, String contextPath, Object actionObject,
Class<?> actionClass, Method actionMethod, String path, String method);
public int registerService(String contextPath, Object service);
public int registerService(
String contextName, String contextPath, Object service);
public int registerService(
String contextName, String contextPath, Object service,
JSONWebServiceRegistrator jsonWebServiceRegistrator);
public int registerServletContext(ServletContext servletContext);
public int unregisterJSONWebServiceActions(Object actionObject);
public int unregisterJSONWebServiceActions(String contextPath);
public int unregisterServletContext(ServletContext servletContext);
}