@Deprecated public class RamlSpecificationRestlet extends Restlet
setApiInboundRoot(Application)
or
setApiInboundRoot(Restlet)
methods.Usage example:
RamlSpecificationRestlet ramlSpecificationRestlet = new RamlSpecificationRestlet(); ramlSpecificationRestlet.setApiInboundRoot(this); ramlSpecificationRestlet.setBasePath("http://myapp.com/api/v1"); ramlSpecificationRestlet.attach(baseRouter);
Constructor and Description |
---|
RamlSpecificationRestlet()
Deprecated.
Default constructor.
|
RamlSpecificationRestlet(Context context)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(Router router)
Deprecated.
Defines one route (by default "/raml") for serving the application
specification.
|
void |
attach(Router router,
java.lang.String path)
Deprecated.
Defines one route (by default "/raml") for serving the application
specification.
|
Restlet |
getApiInboundRoot()
Deprecated.
Returns the root Restlet for the given application.
|
java.lang.String |
getApiVersion()
Deprecated.
Returns the API's version.
|
java.lang.String |
getBasePath()
Deprecated.
Returns the base path of the API.
|
Representation |
getRaml()
Deprecated.
Returns the representation of the whole resource listing of the
Application.
|
java.lang.String |
getRamlVersion()
Deprecated.
Returns the version of RAML used to generate this documentation.
|
void |
handle(Request request,
Response response)
Deprecated.
|
void |
setApiInboundRoot(Application application)
Deprecated.
Sets the root Restlet for the given application.
|
void |
setApiInboundRoot(Restlet apiInboundRoot)
Deprecated.
Sets the root Restlet for the given application.
|
void |
setApiVersion(java.lang.String apiVersion)
Deprecated.
Sets the API's version.
|
void |
setBasePath(java.lang.String basePath)
Deprecated.
Sets the base path of the API.
|
void |
setRamlVersion(java.lang.String ramlVersion)
Deprecated.
Sets the version of RAML used to generate this documentation.
|
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner, start, stop
public RamlSpecificationRestlet()
public RamlSpecificationRestlet(Context context)
context
- The context.public void attach(Router router)
router
- The router on which defining the new route.to attach it with a
custom path
public void attach(Router router, java.lang.String path)
router
- The router on which defining the new route.path
- The root path of the documentation Restlet.to attach it with the default
path
public Restlet getApiInboundRoot()
public java.lang.String getApiVersion()
public java.lang.String getBasePath()
public Representation getRaml()
public java.lang.String getRamlVersion()
public void setApiInboundRoot(Application application)
application
- The application.public void setApiInboundRoot(Restlet apiInboundRoot)
apiInboundRoot
- The application's root Restlet.public void setApiVersion(java.lang.String apiVersion)
apiVersion
- The API version.public void setBasePath(java.lang.String basePath)
basePath
- The base path of the APIpublic void setRamlVersion(java.lang.String ramlVersion)
ramlVersion
- The version of RAML.Copyright © 2005-2024 Restlet.