public interface Description extends BaseDescriptionDocument
| Modifier and Type | Interface and Description |
|---|---|
static class |
Description.FormatStyle
Enumeration of ways to specify format
|
static class |
Description.Lifecycle
Enumeration of lifecycle which indicates the status of this web script
|
static class |
Description.RequiredAuthentication
Enumeration of "required" Authentication level
|
static interface |
Description.RequiredCache
Caching requirements
|
static class |
Description.RequiredTransaction
Enumeration of "required" Transaction level
|
static interface |
Description.RequiredTransactionParameters
Transaction Requirements
|
static class |
Description.TransactionCapability
Enumeration of transaction capability
|
| Modifier and Type | Method and Description |
|---|---|
ArgumentTypeDescription[] |
getArguments()
Gets webscript argument descriptions
|
String |
getDefaultFormat()
Gets the default response format
Note: the default response format is the first listed in the service
description document
|
InputStream |
getDescDocument()
Gets the description xml document for this web script
|
String |
getDescPath()
Gets the path of the description xml document for this web script
|
Map<String,Serializable> |
getExtensions()
Gets web script specific extensions
|
Set<String> |
getFamilys()
Gets the family(s) of this service in the order that they are defined
|
Description.FormatStyle |
getFormatStyle()
Gets the style of Format discriminator supported by this web script
|
String |
getKind()
Gets the kind of service.
|
Description.Lifecycle |
getLifecycle()
Get the lifecycle
|
String |
getMethod()
Gets the HTTP method this service is bound to
|
boolean |
getMultipartProcessing() |
NegotiatedFormat[] |
getNegotiatedFormats()
Gets the formats available for negotiation
|
Path |
getPackage()
Gets the package (Path version of getScriptPath)
|
TypeDescription[] |
getRequestTypes()
Gets webscript request types
|
Description.RequiredAuthentication |
getRequiredAuthentication()
Gets the required authentication level for execution of this service
|
Description.RequiredCache |
getRequiredCache()
Gets the required level of caching
|
Description.RequiredTransaction |
getRequiredTransaction()
Gets the required transaction level
|
Description.RequiredTransactionParameters |
getRequiredTransactionParameters()
Gets the transaction parameters
|
TypeDescription[] |
getResponseTypes()
Gets webscript response types
|
String |
getRunAs()
Gets the ID of the user that the service should be run as or
null if the service is to be run as the
authenticated user. |
String |
getScriptPath()
Gets the path within the store of this web script
|
String |
getStorePath()
Gets the root path of the store of this web script
|
String[] |
getURIs()
Gets the URIs this service supports
|
void |
setMultipartProcessing(boolean multipartProcessing) |
getDescription, getId, getShortNameString getStorePath()
getStorePath in interface BaseDescriptionDocumentString getScriptPath()
Path getPackage()
String getDescPath()
getDescPath in interface BaseDescriptionDocumentInputStream getDescDocument() throws IOException
getDescDocument in interface BaseDescriptionDocumentIOExceptionString getKind()
Set<String> getFamilys()
Description.RequiredAuthentication getRequiredAuthentication()
String getRunAs()
null if the service is to be run as the
authenticated user.null if not applicableDescription.RequiredTransaction getRequiredTransaction()
Description.RequiredTransactionParameters getRequiredTransactionParameters()
Description.RequiredCache getRequiredCache()
String getMethod()
String[] getURIs()
Description.FormatStyle getFormatStyle()
String getDefaultFormat()
NegotiatedFormat[] getNegotiatedFormats()
Map<String,Serializable> getExtensions()
Description.Lifecycle getLifecycle()
boolean getMultipartProcessing()
void setMultipartProcessing(boolean multipartProcessing)
multipartProcessing - true if automatic multipart formdata processing is enabledArgumentTypeDescription[] getArguments()
TypeDescription[] getRequestTypes()
TypeDescription[] getResponseTypes()
Copyright © 2005–2017 Alfresco Software. All rights reserved.