8.5.13 構成ファイルのサンプル
お使いのPCにユーザー・エージェントをインストールすると、インストール・プログラムにより、構成ファイルのサンプル(acme.lih)がユーザー・エージェントのサンプル・フォルダに入ります。以下に示す構成ファイルは、HTTPホストで使用するように調整された構成ファイルのサンプルから抽出したものです。
- LANSA Integrator ホスト情報 # 転送ディレクティブ # transport=jms # transport=ftp # transport=sftp # transport=http # transport=mqseries # javax.net.ssl.keyStore= # javax.net.ssl.keyStoreType=jks # javax.net.ssl.keyStorePassword= # javax.net.ssl.trustStore= # javax.net.ssl.trustStoreType=jks # javax.net.ssl.trustStorePassword= # javax.net.debug=all # javax.net.debug=ssl,handshake,data,trustmanager # java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol # コンテンツのエンコード # local.read.text.encoding=ISO8859_1 # remote.write.text.encoding=UTF-8 # remote.read.text.encoding=UTF-8 # local.write.text.encoding=ISO8859_1 # remote.read.xml.encoding=*charset | *autodetect | value # local.write.xml.encoding=*charset | *default | *text | value # 拡張子ベースのコンテンツ・タイプ (デフォルトは、application/octet-stream) gif=image/gif jpg=image/jpeg jpeg=image/jpeg pdf=application/pdf xls=application/vnd.ms-excel txt=text/plain; charset=utf-8 html=text/html; charset=utf-8 x12=application/edi-x12; charset=utf-8 edi=application/edifact; charset=utf-8 xml=application/xml; charset=utf-8 tsv=application/tab-separated-values; charset=utf-8 csv=application/comma-separated-values; charset=utf-8 # xml=text/xml; charset=utf-8 # tsv=text/tab-separated-values; charset=utf-8 # csv=text/comma-separated-values; charset=utf-8 # アプリケーション・ディレクティブ # tab.placement=*top | *bottom | *left | *right tab.placement=*bottom # source.send=*prompt # source.send=*noprompt # source.open=*prompt # source.open=order.csv # source.convert.yen=*yes # source.xml.validation=*yes | *no source.filter.extension=xml,csv,tsv,xls,gif,jpg,edi,x12 source.filter.description=All Sources source.chooser.description=XML Documents,Comma Separated Values,Tab Separated Values,Excel Documents,GIF Images,JPG Images,EDIFACT Interchanges,X12 Interchanges response.filter.extension=xml,csv,tsv,xls,gif,jpg,edi,x12 response.filter.description=All Responses response.chooser.description=XML Documents,Comma Separated Values,Tab Separated Values,Excel Documents,GIF Images,JPG Images,EDIFACT Interchanges,X12 Interchanges # Excel ディレクティブ # excel.sheet.read=order-data # excel.sheet.write=Sheet1 # excel.read.value.trim=*none | *both | *leading | *trailing # excel.trace=*yes # excel.filter.empty=*no # excel.scale=4 # excel.dateformat=yyyy-MM-dd # excel.convert.decimal=*yes excel.convert=text/comma-separated-values; charset=utf-8 # excel.convert=text/tab-separated-values; charset=utf-8 # SOCKS ディレクティブ # socks=myproxy:1080 # socks.user= # socks.version=4a # HTTP ディレクティブ name=Acme Corporation host=http://server1:88
# method=get | head | trace | options | post | put | find ... # user= # password= # authentication.encoding=ISO8859-1 # host.trusted=*yes # proxy=http://myproxy:80
# proxy.user= # proxy.password= # proxy.authentication.encoding=ISO8859-1 # locale=en_AU # protocol.encoding=ISO8859-1 # # GET,HEAD,TRACE もしくは OPTIONS URI または デフォルト POST URI uri=/download.html # # 拡張子ベースのPOST または、その他のメソッド URI xml.uri=/cgi-bin/jsmdirect?orderxml csv.uri=/cgi-bin/jsmproxy?ordersv tsv.uri=/cgi-bin/jsmdirect?ordersv edi.uri=/cgi-bin/jsmdirect?orderedi x12.uri=/cgi-bin/jsmdirect?orderedi xls.uri=/cgi-bin/jsmdirect?upload-xls gif.uri=/cgi-bin/jsmdirect?upload-image jpg.uri=/cgi-bin/jsmdirect?upload-image # FTP ディレクティブ ftp.name=Acme Corporation FTP site ftp.host=ftp://server1:21
# ftp.method=get | put # ftp.type=*binary | *ascii # ftp.mode=*passive | *port ftp.user= ftp.password= ftp.directory=/upload/ ftp.path=/upload/fixedname.txt # SFTP ディレクティブ sftp.name=Acme Corporation SFTP site sftp.host=sftp://server1:22 # sftp.method=get | put sftp.user= sftp.password= # sftp.key= # sftp.wait=0 # sftp.timeout=0 sftp.directory=/upload/ sftp.path=/upload/fixedname.txt # sftp.path.encoding=value # JMS ディレクティブ jms.name=Message queue # jms.vendor=activemq | sonicmq | tibcomq | webspheremq jms.host= # jms.port= # jms.method=get | put # jms.user=user # jms.password=password jms.queue= # jms.channel= # jms.queue.manager=*default # jms.clientid= # jms.priority=4 # jms.persistent=*yes # jms.expiry=*unlimited # jms.waittime=2000 # MQSeries ディレクティブ mq.name=Message queue mq.host= mq.port=1414 # mq.method=get | put mq.user= mq.password= mq.queue= mq.channel= mq.queue.manager=*default mq.ccsid=37 mq.encoding=*ccsid | value mq.type=*datagram # mq.type=*datagram | 65536 to 999999999 mq.format=*default # mq.format=*none | *default | value mq.priority=0 mq.persistent=*default # mq.persistent=*default | *yes | *no mq.expiry=*unlimited # mq.expiry=*unlimited | value # mq.waittime=2000 mq.userid= # mq.applicationid= # mq.messageid=*none | value # mq.correlationid=*none | value # mq.id.encoding=*ccsid | value # mq.reply.queue= # mq.reply.queue.manager=