com.liferay.portal.kernel.jsonwebservice
Class BaseJSONWebServiceConfigurator
java.lang.Object
com.liferay.portal.kernel.jsonwebservice.BaseJSONWebServiceConfigurator
- All Implemented Interfaces:
- JSONWebServiceConfigurator
public abstract class BaseJSONWebServiceConfigurator
- extends Object
- implements JSONWebServiceConfigurator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseJSONWebServiceConfigurator
public BaseJSONWebServiceConfigurator()
clean
public void clean()
- Specified by:
clean in interface JSONWebServiceConfigurator
configure
public abstract void configure()
throws PortalException,
SystemException
- Specified by:
configure in interface JSONWebServiceConfigurator
- Throws:
PortalException
SystemException
getClassLoader
public ClassLoader getClassLoader()
getContextPath
public String getContextPath()
getRegisteredActionsCount
public int getRegisteredActionsCount()
- Specified by:
getRegisteredActionsCount in interface JSONWebServiceConfigurator
getServletContext
public javax.servlet.ServletContext getServletContext()
init
public void init(javax.servlet.ServletContext servletContext,
ClassLoader classLoader)
- Specified by:
init in interface JSONWebServiceConfigurator
registerClass
public void registerClass(String className,
InputStream inputStream)
throws Exception
- Specified by:
registerClass in interface JSONWebServiceConfigurator
- Throws:
Exception
getTypeSignatureBytes
protected byte[] getTypeSignatureBytes(Class<?> clazz)
hasAnnotatedServiceImpl
protected boolean hasAnnotatedServiceImpl(String className)
isJSONWebServiceClass
protected boolean isJSONWebServiceClass(Class<?> clazz)
isTypeSignatureInUse
protected boolean isTypeSignatureInUse(InputStream inputStream)
loadUtilClass
protected Class<?> loadUtilClass(Class<?> implementationClass)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
onJSONWebServiceClass
protected void onJSONWebServiceClass(String className)
throws Exception
- Throws:
Exception
registerJSONWebServiceAction
protected void registerJSONWebServiceAction(Class<?> implementationClass,
Method method)
throws Exception
- Throws:
Exception