Interface Description
- All Superinterfaces:
BaseDescription,BaseDescriptionDocument
- All Known Implementing Classes:
DescriptionImpl
Web Script Description
- Author:
- davidc
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of ways to specify formatstatic enumEnumeration of lifecycle which indicates the status of this web scriptstatic enumEnumeration of "required" Authentication levelstatic interfaceCaching requirementsstatic enumEnumeration of "required" Transaction levelstatic interfaceTransaction Requirementsstatic enumEnumeration of transaction capability -
Method Summary
Modifier and TypeMethodDescriptionGets webscript argument descriptionsGets the default response format Note: the default response format is the first listed in the service description documentGets the description xml document for this web scriptGets the path of the description xml document for this web scriptGets web script specific extensionsGets the family(s) of this service in the order that they are definedGets the style of Format discriminator supported by this web scriptgetKind()Gets the kind of service.Get the lifecycleGets the HTTP method this service is bound tobooleanGets the formats available for negotiationGets the package (Path version of getScriptPath)Gets webscript request typesGets the required authentication level for execution of this serviceGets the required level of cachingGets the required transaction levelGets the transaction parametersGets webscript response typesgetRunAs()Gets the ID of the user that the service should be run as ornullif the service is to be run as the authenticated user.Gets the path within the store of this web scriptGets the root path of the store of this web scriptString[]getURIs()Gets the URIs this service supportsvoidsetMultipartProcessing(boolean multipartProcessing) Methods inherited from interface org.springframework.extensions.webscripts.BaseDescription
getDescription, getId, getShortName
-
Method Details
-
getStorePath
String getStorePath()Gets the root path of the store of this web script- Specified by:
getStorePathin interfaceBaseDescriptionDocument- Returns:
- root path of store
-
getScriptPath
String getScriptPath()Gets the path within the store of this web script- Returns:
- path within store
-
getPackage
Path getPackage()Gets the package (Path version of getScriptPath) -
getDescPath
String getDescPath()Gets the path of the description xml document for this web script- Specified by:
getDescPathin interfaceBaseDescriptionDocument- Returns:
- document location (path)
-
getDescDocument
Gets the description xml document for this web script- Specified by:
getDescDocumentin interfaceBaseDescriptionDocument- Returns:
- source document
- Throws:
IOException
-
getKind
String getKind()Gets the kind of service. A Web Script may explicitly define its backing-bean implementation. The backing bean implementation is identified by a Spring bean whose id is: webscript.The may be dot separated. - Returns:
- the kind of service (or null, for a vanilla declarative web script)
-
getFamilys
Gets the family(s) of this service in the order that they are defined -
getRequiredAuthentication
Description.RequiredAuthentication getRequiredAuthentication()Gets the required authentication level for execution of this service- Returns:
- the required authentication level
-
getRunAs
String getRunAs()Gets the ID of the user that the service should be run as ornullif the service is to be run as the authenticated user.- Returns:
- a user name or
nullif not applicable
-
getRequiredTransaction
Description.RequiredTransaction getRequiredTransaction()Gets the required transaction level- Returns:
- the required transaction level
-
getRequiredTransactionParameters
Description.RequiredTransactionParameters getRequiredTransactionParameters()Gets the transaction parameters- Returns:
- the transaction parameters
-
getRequiredCache
Description.RequiredCache getRequiredCache()Gets the required level of caching- Returns:
- RequiredCache
-
getMethod
String getMethod()Gets the HTTP method this service is bound to- Returns:
- HTTP method
-
getURIs
String[] getURIs()Gets the URIs this service supports- Returns:
- array of URIs in order specified in service description document
-
getFormatStyle
Description.FormatStyle getFormatStyle()Gets the style of Format discriminator supported by this web script- Returns:
- format style
-
getDefaultFormat
String getDefaultFormat()Gets the default response format Note: the default response format is the first listed in the service description document- Returns:
- default response format (or null, if format not known until run-time)
-
getNegotiatedFormats
NegotiatedFormat[] getNegotiatedFormats()Gets the formats available for negotiation- Returns:
- negotiated formats
-
getExtensions
Map<String,Serializable> getExtensions()Gets web script specific extensions- Returns:
- map of extensions by name
-
getLifecycle
Description.Lifecycle getLifecycle()Get the lifecycle -
getMultipartProcessing
boolean getMultipartProcessing()- Returns:
- true if automatic multipart formdata processing is enabled
-
setMultipartProcessing
void setMultipartProcessing(boolean multipartProcessing) - Parameters:
multipartProcessing- true if automatic multipart formdata processing is enabled
-
getArguments
ArgumentTypeDescription[] getArguments()Gets webscript argument descriptions- Returns:
- argument descriptions
-
getRequestTypes
TypeDescription[] getRequestTypes()Gets webscript request types- Returns:
- request types
-
getResponseTypes
TypeDescription[] getResponseTypes()Gets webscript response types- Returns:
- response types
-