|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.DescriptionImpl
public class DescriptionImpl
Implementation of a Web Script Description
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.springframework.extensions.webscripts.Description |
---|
Description.FormatStyle, Description.Lifecycle, Description.RequiredAuthentication, Description.RequiredCache, Description.RequiredTransaction, Description.RequiredTransactionParameters, Description.TransactionCapability |
Constructor Summary | |
---|---|
DescriptionImpl()
|
Method Summary | |
---|---|
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 |
String |
getDescription()
Gets the description of this service |
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 |
getId()
Gets the id of this service |
String |
getKind()
Gets the kind of service. |
Description.Lifecycle |
getLifecycle()
Get the lifecycle |
String |
getMethod()
Gets the HTTP method this service is bound to |
NegotiatedFormat[] |
getNegotiatedFormats()
Gets the formats available for negotiation |
Path |
getPackage()
Gets the package (Path version of getScriptPath) |
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 |
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 |
getShortName()
Gets the short name of this service |
String |
getStorePath()
Gets the root path of the store of this web script |
String[] |
getURIs()
Gets the URIs this service supports |
void |
setDefaultFormat(String defaultFormat)
Sets the default response format |
void |
setDescPath(String descPath)
Sets the desc path |
void |
setDescription(String description)
Sets the service description |
void |
setExtensions(Map<String,Serializable> extensions)
Sets Web Script custom extensions |
void |
setFamilys(Set<String> familys)
|
void |
setFormatStyle(Description.FormatStyle formatStyle)
Sets the format style |
void |
setId(String id)
Sets the service id |
void |
setKind(String kind)
Sets the service kind |
void |
setLifecycle(Description.Lifecycle lifecycle)
Sets the lifecycle |
void |
setMethod(String httpMethod)
Sets the service http method |
void |
setNegotiatedFormats(NegotiatedFormat[] negotiatedFormats)
Sets the negotiated formats |
void |
setPackage(Path scriptPackage)
Sets the Package (path version of getScriptPath) |
void |
setRequiredAuthentication(Description.RequiredAuthentication requiredAuthentication)
Sets the required level of authentication |
void |
setRequiredCache(Description.RequiredCache requiredCache)
Sets the required cache |
void |
setRequiredTransactionParameters(Description.RequiredTransactionParameters transactionParameters)
Sets the transaction parameters |
void |
setRunAs(String runAs)
Sets the ID of the user that the service should be run as. |
void |
setScriptPath(String scriptPath)
Sets the script path |
void |
setShortName(String shortName)
Sets the service short name |
void |
setStore(Store store)
Sets the web description store |
void |
setUris(String[] uris)
Sets the service URIs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DescriptionImpl()
Method Detail |
---|
public void setStore(Store store)
store
- storepublic String getStorePath()
Description
getStorePath
in interface Description
public void setScriptPath(String scriptPath)
scriptPath
- public String getScriptPath()
Description
getScriptPath
in interface Description
public void setPackage(Path scriptPackage)
package
- public Path getPackage()
Description
getPackage
in interface Description
public void setDescPath(String descPath)
descPath
- public String getDescPath()
Description
getDescPath
in interface Description
public InputStream getDescDocument() throws IOException
Description
getDescDocument
in interface Description
IOException
public void setId(String id)
id
- public String getId()
Description
getId
in interface Description
public void setKind(String kind)
kind
- public String getKind()
Description
getKind
in interface Description
public void setShortName(String shortName)
shortName
- public String getShortName()
Description
getShortName
in interface Description
public void setDescription(String description)
description
- public String getDescription()
Description
getDescription
in interface Description
public void setFamilys(Set<String> familys)
family
- the family to setpublic Set<String> getFamilys()
Description
getFamilys
in interface Description
public void setRequiredAuthentication(Description.RequiredAuthentication requiredAuthentication)
requiredAuthentication
- public Description.RequiredAuthentication getRequiredAuthentication()
Description
getRequiredAuthentication
in interface Description
public void setRunAs(String runAs)
runAs
- a user namepublic String getRunAs()
Description
null
if the service is to be run as the
authenticated user.
getRunAs
in interface Description
null
if not applicablepublic Description.RequiredTransaction getRequiredTransaction()
Description
getRequiredTransaction
in interface Description
public void setRequiredTransactionParameters(Description.RequiredTransactionParameters transactionParameters)
transactionParameters
- public Description.RequiredTransactionParameters getRequiredTransactionParameters()
Description
getRequiredTransactionParameters
in interface Description
public void setRequiredCache(Description.RequiredCache requiredCache)
requiredCache
- public Description.RequiredCache getRequiredCache()
Description
getRequiredCache
in interface Description
public void setFormatStyle(Description.FormatStyle formatStyle)
formatStyle
- public Description.FormatStyle getFormatStyle()
Description
getFormatStyle
in interface Description
public void setMethod(String httpMethod)
httpMethod
- public String getMethod()
Description
getMethod
in interface Description
public void setUris(String[] uris)
uris
- public String[] getURIs()
Description
getURIs
in interface Description
public void setDefaultFormat(String defaultFormat)
defaultFormat
- public String getDefaultFormat()
Description
getDefaultFormat
in interface Description
public void setNegotiatedFormats(NegotiatedFormat[] negotiatedFormats)
defaultFormat
- public NegotiatedFormat[] getNegotiatedFormats()
Description
getNegotiatedFormats
in interface Description
public void setExtensions(Map<String,Serializable> extensions)
extensions
- public Map<String,Serializable> getExtensions()
Description
getExtensions
in interface Description
public Description.Lifecycle getLifecycle()
Description
getLifecycle
in interface Description
public void setLifecycle(Description.Lifecycle lifecycle)
lifecycle
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |