|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.ksb.api.bus.support.AbstractServiceDefinition org.kuali.rice.ksb.api.bus.support.RestServiceDefinition
public class RestServiceDefinition
Service definition for RESTful services. A JAX-WS service has a resource class, which is the class or interface marked by the JAX-WS annotations (e.g. @Path, @GET, etc). This may or may not be the implementation class.
Field Summary | |
---|---|
private Map<Object,Object> |
extensionMappings
|
private Map<Object,Object> |
languageMappings
|
private List<Object> |
providers
|
private String |
resourceClass
|
private List<Object> |
resources
|
private org.apache.commons.collections.BidiMap |
resourceToClassNameMap
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
RestServiceDefinition()
Default constructor. |
Method Summary | |
---|---|
protected ServiceConfiguration |
configure()
|
Map<Object,Object> |
getExtensionMappings()
|
Map<Object,Object> |
getLanguageMappings()
|
List<Object> |
getProviders()
|
String |
getResourceClass()
|
List<Object> |
getResources()
|
Map<String,String> |
getResourceToClassNameMap()
|
String |
getType()
Returns the type of this service. |
boolean |
hasClass(String className)
|
void |
setBusSecurity(Boolean busSecurity)
To ensure transparency that RESTful services are not digitally signed, throw an exception if someone tries to enable bus security. |
void |
setExtensionMappings(Map<Object,Object> extensionMappings)
|
void |
setLanguageMappings(Map<Object,Object> languageMappings)
|
void |
setProviders(List<Object> providers)
|
void |
setResourceClass(String resourceClass)
Set the resourceClass, the class or interface marked by the JAX-WS annotations which specify the RESTful URL interface. |
void |
setResources(List<Object> resources)
|
void |
validate()
does some simple validation of this RESTServiceDefinition |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String resourceClass
private transient List<Object> resources
private org.apache.commons.collections.BidiMap resourceToClassNameMap
private transient List<Object> providers
private transient Map<Object,Object> extensionMappings
private transient Map<Object,Object> languageMappings
Constructor Detail |
---|
public RestServiceDefinition()
Method Detail |
---|
public String getType()
ServiceDefinition
public void setBusSecurity(Boolean busSecurity)
setBusSecurity
in class AbstractServiceDefinition
org.kuali.rice.ksb.AbstractServiceDefinition.ServiceDefinition#setBusSecurity(java.lang.Boolean)
public void setResourceClass(String resourceClass)
resourceClass
- the resourceClass to setpublic String getResourceClass()
setResourceClass(String)
public void validate()
validate
in interface ServiceDefinition
validate
in class AbstractServiceDefinition
org.kuali.rice.ksb.AbstractServiceDefinition.ServiceDefinition#validate()
protected ServiceConfiguration configure()
configure
in class AbstractServiceDefinition
public List<Object> getResources()
public void setResources(List<Object> resources)
resources
- the resources to setpublic Map<String,String> getResourceToClassNameMap()
public boolean hasClass(String className)
className
-
public List<Object> getProviders()
public void setProviders(List<Object> providers)
providers
- the providers to setpublic Map<Object,Object> getExtensionMappings()
public void setExtensionMappings(Map<Object,Object> extensionMappings)
extensionMappings
- the extensionMappings to setpublic Map<Object,Object> getLanguageMappings()
public void setLanguageMappings(Map<Object,Object> languageMappings)
languageMappings
- the languageMappings to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |