dfischer.femtowebserver.test
Class CurrentServerVersionSssi
java.lang.Object
|
+--dfischer.femtowebserver.test.CurrentServerVersionSssi
- All Implemented Interfaces:
- HttpdSssiInterface
- public class CurrentServerVersionSssi
- extends java.lang.Object
- implements HttpdSssiInterface
This SSSI example displays the current Version of the Femto Web Server.
Java Sourcecode
package dfischer.femtowebserver.test;
import dfischer.femtowebserver.httpd.*;
public class CurrentServerVersionSssi implements HttpdSssiInterface
{
public String execute(String[] args, HttpRequest httpRequest, HttpdProperties httpdProperties) throws Exception
{
return httpdProperties.PRODUCT_VERSION;
}
}
HTML Source
<HTML>
<BODY>
Current Femto Version = <!-- @dfischer.femtowebserver.test.CurrentServerVersionSssi() -->
</BODY>
</HTML>
- See Also:
CurrentTimeTestSssi,
HttpdSssiInterface
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentServerVersionSssi
public CurrentServerVersionSssi()
execute
public java.lang.String execute(java.lang.String[] args,
HttpRequest httpRequest,
HttpdProperties httpdProperties)
throws java.lang.Exception
- Executes the SSSI.
- Specified by:
execute in interface HttpdSssiInterface
- Parameters:
args - arguments from the HTML/SSSI callhttpRequest - HTTP request datahttpdProperties - properties of the Femto Web Server