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