Liferay 7.0-ce-b4

com.liferay.portal.kernel.jsonwebservice
Class JSONWebServiceNaming

java.lang.Object
  extended by com.liferay.portal.kernel.jsonwebservice.JSONWebServiceNaming

public class JSONWebServiceNaming
extends Object


Field Summary
protected  Set<String> excludedMethodNames
           
protected  String[] excludedPaths
           
protected  String[] excludedTypesNames
           
protected  String[] includedPaths
           
protected  Set<String> invalidHttpMethods
           
protected  Set<String> prefixes
           
 
Constructor Summary
JSONWebServiceNaming()
           
 
Method Summary
 String convertMethodToHttpMethod(Method method)
           
 String convertMethodToPath(Method method)
           
 String convertModelClassToImplClassName(Class<?> clazz)
           
 String convertServiceClassToPath(Class<?> clazz)
           
 String convertServiceClassToSimpleName(Class<?> clazz)
           
 String convertServiceImplClassToUtilClassName(Class<?> clazz)
           
protected  String getMethodNamePrefix(String methodName)
           
 boolean isIncludedMethod(Method method)
           
 boolean isIncludedPath(String contextPath, String path)
           
 boolean isValidHttpMethod(String httpMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

excludedMethodNames

protected Set<String> excludedMethodNames

excludedPaths

protected String[] excludedPaths

excludedTypesNames

protected String[] excludedTypesNames

includedPaths

protected String[] includedPaths

invalidHttpMethods

protected Set<String> invalidHttpMethods

prefixes

protected Set<String> prefixes
Constructor Detail

JSONWebServiceNaming

public JSONWebServiceNaming()
Method Detail

convertMethodToHttpMethod

public String convertMethodToHttpMethod(Method method)

convertMethodToPath

public String convertMethodToPath(Method method)

convertModelClassToImplClassName

public String convertModelClassToImplClassName(Class<?> clazz)

convertServiceClassToPath

public String convertServiceClassToPath(Class<?> clazz)

convertServiceClassToSimpleName

public String convertServiceClassToSimpleName(Class<?> clazz)

convertServiceImplClassToUtilClassName

public String convertServiceImplClassToUtilClassName(Class<?> clazz)

isIncludedMethod

public boolean isIncludedMethod(Method method)

isIncludedPath

public boolean isIncludedPath(String contextPath,
                              String path)

isValidHttpMethod

public boolean isValidHttpMethod(String httpMethod)

getMethodNamePrefix

protected String getMethodNamePrefix(String methodName)

Liferay 7.0-ce-b4