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

Constructor Summary
CurrentServerVersionSssi()
           
 
Method Summary
 java.lang.String execute(java.lang.String[] args, HttpRequest httpRequest, HttpdProperties httpdProperties)
          Executes the SSSI.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentServerVersionSssi

public CurrentServerVersionSssi()
Method Detail

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 call
httpRequest - HTTP request data
httpdProperties - properties of the Femto Web Server