|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.config.EnunciateConfiguration
public class EnunciateConfiguration
Base configuration object for enunciate.
| Constructor Summary | |
|---|---|
EnunciateConfiguration()
Create a new enunciate configuration. |
|
EnunciateConfiguration(java.lang.ClassLoader loader)
Create a new enunciate configuration. |
|
EnunciateConfiguration(java.util.Collection<DeploymentModule> modules)
Construct an enunciate configuration with the specified set of modules. |
|
| Method Summary | |
|---|---|
void |
addApiExcludePattern(java.lang.String pattern)
The API exclude pattern. |
void |
addAPIImport(APIImport apiImport)
Add an API import to the configuration. |
void |
addApiIncludePattern(java.lang.String pattern)
The API include pattern. |
void |
addCustomResourceParameterAnnotation(java.lang.String annotation)
Add a custom annotation that can be applied to indicate a resource parameter. |
void |
addDisabledRule(java.lang.String ruleId)
Add a disabled rule. |
void |
addModule(DeploymentModule module)
Add a module to the list of modules. |
void |
addSoapEndpointLocation(java.lang.String serviceName,
java.lang.String relativePath)
Adds a custom soap endpoint location for an SOAP service. |
protected org.apache.commons.digester.Digester |
createDigester()
Create the digester. |
protected java.util.Iterator |
discoverModules(java.lang.ClassLoader loader)
Discover the deployment modules. |
void |
error(org.xml.sax.SAXParseException error)
Handle an error. |
void |
fatalError(org.xml.sax.SAXParseException fatal)
Handle a fatal. |
java.util.SortedSet<DeploymentModule> |
getAllModules()
The list of all deployment modules specified in the configuration. |
java.util.Set<java.lang.String> |
getApiExcludePatterns()
The patterns for API excludes. |
java.util.List<APIImport> |
getAPIImports()
Get the list of API imports for this configuration. |
java.util.Set<java.lang.String> |
getApiIncludePatterns()
The patterns for API includes. |
java.util.Map<java.lang.String,java.lang.String> |
getContentTypesToIds()
The map of content types to ids. |
java.util.Set<java.lang.String> |
getCustomResourceParameterAnnotations()
The set of custom annotations that can be applied to indicate a resource parameter. |
java.lang.String |
getDefaultRestSubcontext()
The default rest context. |
java.lang.String |
getDefaultSoapSubcontext()
The default soap context. |
java.lang.String |
getDeploymentContext()
The context at which the deployed app will be mounted. |
java.lang.String |
getDeploymentHost()
The hostname of the host that will host the deployed app. |
java.lang.String |
getDeploymentProtocol()
The protocol that will be used when the app is deployed. |
java.lang.String |
getDescription()
The description for this enunciated API. |
java.util.Set<java.lang.String> |
getDisabledRules()
The disabled rules. |
java.util.List<DeploymentModule> |
getEnabledModules()
The list of enabled modules in the configuration. |
java.lang.String |
getLabel()
The label for this enunciate project. |
java.util.Map<java.lang.String,java.lang.String> |
getNamespacesToPrefixes()
The map of namespaces to prefixes. |
java.util.Map<java.lang.String,java.lang.String> |
getSoapServices2Paths()
Get the map of SOAP service names to custom paths. |
Validator |
getValidator()
The configured validator, if any. |
WebAppConfig |
getWebAppConfig()
The configuration for the web app. |
boolean |
isAllowEmptyNamespace()
Whether to allow the empty namespace on type/element definitions. |
boolean |
isExcludeUnreferencedClasses()
Whether to exclude classes that are not statically referenced (default: true). |
boolean |
isForceJAXWSSpecCompliance()
Whether to force parameter names to be JAX-WS compliant. |
boolean |
isIncludeReferencedClasses()
Whether to include statically-referenced type definitions (default: true). |
boolean |
isIncludeReferenceTrailInErrors()
Whether to include referencing type information in error messages. |
void |
load(java.io.File file)
Loads the configuration specified by the given config file. |
void |
load(java.io.InputStream in)
Loads the configuration specified by the given stream. |
void |
load(java.io.Reader in)
Loads the configuration specified by the given stream. |
void |
putContentType(java.lang.String type,
java.lang.String id)
Configures a content type. |
void |
putNamespace(java.lang.String namespace,
java.lang.String prefix)
Configures a namespace for the specified prefix. |
void |
setAllowEmptyNamespace(boolean allowEmptyNamespace)
Whether to allow the empty namespace on type/element definitions. |
void |
setDefaultRestSubcontext(java.lang.String defaultRestSubcontext)
The default rest context. |
void |
setDefaultSoapSubcontext(java.lang.String defaultSoapSubcontext)
The default soap context. |
void |
setDeploymentContext(java.lang.String deploymentContext)
The context at which the deployed app will be mounted. |
void |
setDeploymentHost(java.lang.String deploymentHost)
The hostname of the host that will host the deployed app. |
void |
setDeploymentProtocol(java.lang.String deploymentProtocol)
The protocol that will be used when the app is deployed. |
void |
setDescription(java.lang.String description)
The description for this enunciated API. |
void |
setExcludeUnreferencedClasses(boolean excludeUnreferencedClasses)
Whether to exclude classes that are not statically referenced. |
void |
setForceJAXWSSpecCompliance(boolean forceJAXWSSpecCompliance)
Whether to force parameter names to be JAX-WS compliant. |
void |
setIncludeReferencedClasses(boolean includeReferencedClasses)
Whether to include statically-referenced type definitions (default: true). |
void |
setIncludeReferenceTrailInErrors(boolean includeReferenceTrailInErrors)
Whether to include referencing type information in error messages. |
void |
setLabel(java.lang.String label)
The label for this enunciate project. |
void |
setValidator(Validator validator)
The validator to use. |
void |
setWebAppConfig(WebAppConfig webAppConfig)
The configuration for the web app. |
void |
warning(org.xml.sax.SAXParseException warning)
Handle a warning. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnunciateConfiguration()
public EnunciateConfiguration(java.lang.ClassLoader loader)
loader - the classloader to use.public EnunciateConfiguration(java.util.Collection<DeploymentModule> modules)
modules - The modules.| Method Detail |
|---|
protected java.util.Iterator discoverModules(java.lang.ClassLoader loader)
loader - The classloader, or null if none.
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - The label for this enunciate project.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description for this enunciated API.public Validator getValidator()
public void setValidator(Validator validator)
validator - The validator to use.public java.util.Set<java.lang.String> getDisabledRules()
public void addDisabledRule(java.lang.String ruleId)
ruleId - The id of the rule to disable.public java.util.Set<java.lang.String> getApiIncludePatterns()
public void addApiIncludePattern(java.lang.String pattern)
pattern - The API include pattern.public java.util.Set<java.lang.String> getApiExcludePatterns()
public void addApiExcludePattern(java.lang.String pattern)
pattern - The API exclude pattern.public java.lang.String getDeploymentProtocol()
public void setDeploymentProtocol(java.lang.String deploymentProtocol)
deploymentProtocol - The protocol that will be used when the app is deployed. Default: "http".public java.lang.String getDeploymentHost()
public void setDeploymentHost(java.lang.String deploymentHost)
deploymentHost - The hostname of the host that will host the deployed app.public boolean isForceJAXWSSpecCompliance()
public void setForceJAXWSSpecCompliance(boolean forceJAXWSSpecCompliance)
forceJAXWSSpecCompliance - Whether to force parameter names to be JAX-WS compliant.public boolean isAllowEmptyNamespace()
public void setAllowEmptyNamespace(boolean allowEmptyNamespace)
allowEmptyNamespace - Whether to allow the empty namespace on type/element definitions.public boolean isIncludeReferenceTrailInErrors()
public void setIncludeReferenceTrailInErrors(boolean includeReferenceTrailInErrors)
includeReferenceTrailInErrors - Whether to include referencing type information in error messages.public boolean isIncludeReferencedClasses()
public void setIncludeReferencedClasses(boolean includeReferencedClasses)
includeReferencedClasses - Whether to include statically-referenced type definitions.public boolean isExcludeUnreferencedClasses()
public void setExcludeUnreferencedClasses(boolean excludeUnreferencedClasses)
excludeUnreferencedClasses - Whether to exclude classes that are not statically referenced.public WebAppConfig getWebAppConfig()
public void setWebAppConfig(WebAppConfig webAppConfig)
webAppConfig - The configuration for the web app.public java.lang.String getDeploymentContext()
public void setDeploymentContext(java.lang.String deploymentContext)
deploymentContext - The context at which the deployed app will be mounted.
public void putNamespace(java.lang.String namespace,
java.lang.String prefix)
namespace - The namespace.prefix - The prefix.
public void putContentType(java.lang.String type,
java.lang.String id)
type - The value of the content type.id - The id of the content type.public java.lang.String getDefaultSoapSubcontext()
public void setDefaultSoapSubcontext(java.lang.String defaultSoapSubcontext)
defaultSoapSubcontext - The default soap context.public java.lang.String getDefaultRestSubcontext()
public void setDefaultRestSubcontext(java.lang.String defaultRestSubcontext)
defaultRestSubcontext - The default rest context.
public void addSoapEndpointLocation(java.lang.String serviceName,
java.lang.String relativePath)
serviceName - The service name.relativePath - The relative path to the service.public void addAPIImport(APIImport apiImport)
apiImport - The API import to add to the configuration.public java.util.List<APIImport> getAPIImports()
public java.util.Map<java.lang.String,java.lang.String> getNamespacesToPrefixes()
public java.util.Map<java.lang.String,java.lang.String> getContentTypesToIds()
public java.util.Map<java.lang.String,java.lang.String> getSoapServices2Paths()
public java.util.SortedSet<DeploymentModule> getAllModules()
public void addModule(DeploymentModule module)
module - The module to add.public java.util.Set<java.lang.String> getCustomResourceParameterAnnotations()
public void addCustomResourceParameterAnnotation(java.lang.String annotation)
annotation - The FQN of the annotation.public java.util.List<DeploymentModule> getEnabledModules()
public void load(java.io.File file)
throws java.io.IOException,
org.xml.sax.SAXException
file - The file.
java.io.IOException
org.xml.sax.SAXException
public void load(java.io.InputStream in)
throws java.io.IOException,
org.xml.sax.SAXException
in - The stream.
java.io.IOException
org.xml.sax.SAXException
public void load(java.io.Reader in)
throws java.io.IOException,
org.xml.sax.SAXException
in - The stream.
java.io.IOException
org.xml.sax.SAXException
protected org.apache.commons.digester.Digester createDigester()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException warning)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerwarning - The warning.
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException error)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlererror - The error.
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException fatal)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerfatal - The fatal.
org.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||