public interface HttpService
WebServer
, then requests to that server
that match the relative path set by the setRelativePath(URI)
method of this interface will be delegated to that actor or attribute.
Note that "HttpService" is also the name of an OSGi interface. If OSGi is incorporated in Ptolemy in the future, we might want to rename this interface. See /home/hudson/jobs/kepler/workspace/ptolemy/src/com/microstar/xml/demo/XmlApp.java.
Modifier and Type | Method and Description |
---|---|
java.net.URI |
getRelativePath()
Returns the relative path that this HttpService is mapped to,
which is the value set previously by a call to
setRelativePath(URI) . |
javax.servlet.http.HttpServlet |
getServlet()
Returns an HttpServlet which is used to handle requests that
arrive at the given relative path.
|
void |
setRelativePath(java.net.URI relativePath)
Set the relative path that this HttpService is mapped to.
|
void |
setWebServer(WebServer server)
Specify the web server for this service.
|
java.net.URI getRelativePath()
setRelativePath(URI)
.setRelativePath(URI)
javax.servlet.http.HttpServlet getServlet()
void setRelativePath(java.net.URI relativePath)
relativePath
- The relative path that this HttpService is mapped to.getRelativePath()
void setWebServer(WebServer server)
WebServer
attribute of a model,
if there is one, and will enable the service to access
information about the web server (such as
the resourcePath, resourceLocation, or temporaryFileLocation).server
- The WebServer for this service