Page History
...
Javaクラスは様々なリソースのパスに基づき実行されます。仮想ホストのスクリプト要素はJavaクラスと特定のリソース・パスを関連付ける際に利用されます。trace属性はHTTPトランザクションのJSMトレースを可能にします。
httpd.xml
| Code Block | ||
|---|---|---|
| ||
<?xml versionxml version="1.0" encoding encoding="UTF-8"?> <configuration> <instance name <instance name="WebServer" active active="true" root root="www/instance/htdocs" index index="index.html"> <errorlog enabled="true" file="www/instance/logs/e rror.log"/> <accesslog enabled="true" file="www/instance/logs/a ccess.log"/> <listen port <listen port="4563" interface interface="*ALL" backlog backlog="256" secure="false" store store="pki/wwwssl.jks" password password="password" buffersend="-1" bufferreceive bufferreceive="-1" nodelay nodelay="false" timeout timeout="5"/> <access> <!-- Once a true condition occurs no more evaluations are done. <deny address="*"/> <deny address="10.2.1.45"/> <allow address="*"/> <allow address="10.2.1.45"/> --> </access> <mimetype> <!-- These are the default values. --> <map extension <map extension="png" type="image/png"/> <map extension <map extension="gif" type="image/gif"/> <map extension <map extension="jpg" type="image/jpeg"/> <map extension <map extension="jpeg" type type="image/jpeg"/> <map extension <map extension="tiff" type type="image/tiff"/> <map extension <map extension="ico" type="image/x-icon"/> <map extension <map extension="svg" type="image/svg+xml"/> <map extension <map extension="pdf" type="application/pdf"/> <map extension <map extension="css" type="text/css; charset=utf-8"/> <map extension <map extension="xsl" type="text/xls; charset=utf-8"/> <map extension <map extension="xml" type="text/xml; charset=utf-8"/> <map extension <map extension="htm" type="text/html; charset=utf-8"/> <map extension <map extension="html" type type="text/html; charset=utf-8"/> <map extension <map extension="js" type="application/x-javascript; charset=utf-8"/> </mimetype> <virtual host <virtual host="*" active active="true"> <access> <!-- Once a true condition occurs no more evaluations are done. <deny address="*"/> <deny address="10.2.1"/> <deny address="10.2.1.45"/> <allow address="*"/> <allow address="10.2.1"/> <allow address="10.2.1.45"/> <deny useragent="*"/> <deny useragent="?"/> <deny useragent="edge"/> <deny useragent="opera"/> <deny useragent="chrome"/> <deny useragent="safari"/> <deny useragent="android"/> <deny useragent="firefox"/> <deny useragent="explorer"/> <deny useragent="imac"/> <deny useragent="ipad"/> <deny useragent="ipod"/> <deny useragent="iphone"/> <deny useragent="iwork"/> <deny useragent="msnbot"/> <deny useragent="lansaua"/> <deny useragent="yahoobot"/> <deny useragent="googlebot"/> <deny useragent="longreach"/> <allow useragent="*"/> <allow useragent="?"/> <allow useragent="edge"/> <allow useragent="opera"/> <allow useragent="chrome"/> <allow useragent="safari"/> <allow useragent="android"/> <allow useragent="firefox"/> <allow useragent="explorer"/> <allow useragent="imac"/> <allow useragent="ipad"/> <allow useragent="ipod"/> <allow useragent="iphone"/> <allow useragent="iwork"/> <allow useragent="msnbot"/> <allow useragent="lansaua"/> <allow useragent="yahoobot"/> <allow useragent="googlebot"/> <allow useragent="longreach"/> <deny contentlength="4096"/> Deny access if content length is greater than value <allow contentlength="4096"/> Allow access if content length less than or equal to value Zero content length from the browser is a special case and access is allowed for no content connections --> <!-- The default is to allow access for all addresses, useragents and content lengths --> </access> <script> <match uri <match uri="/ping.jsp" class class="com.lansa.jsm.JSMHTTPServicePing" trace trace="false"/> <match uri <match uri="/" class class="com.lansa.jsm.JSMHTTPServiceFile" trace trace="false"> <parameter name <parameter name="cache.maxage" value="28800"/> <parameter name <parameter name="cache.maxage.pdf" value="28800"/> <parameter name <parameter name="cache.maxage.image" value value="28800"/> </match> <mimetype> </script> <mimetype> <map extension="pdf" type="application/pdf"/> <!-- Defaults to instance mimetype --> </mimetype> </virtual> </instance> </configuration> |
...
カスタムの Java クラスを書いて、HTTP サーバーからの HTTP 要求を処理するには、Java クラスで com.lansa.jsm.JSMHTTPService のインターフェースが実装されていなければなりません。
...