org.openmobileis.common.util.file
Class HTTPFileConduit
java.lang.Object
org.openmobileis.common.util.file.HTTPFileConduit
- public final class HTTPFileConduit
- extends java.lang.Object
Title: OpenMobileIS project source
Description: Copy the content of a HTTP request in file call filename.in. Way
for the filename.out to be created. Then return it in the HTTP request
answer. Allow to use a file to transfer HTTP request to a distant server
using a file and return the server answer in the incomming request.
To use it, create the HTTP request and use localhost + port has server. Start
the Conduit. Send the request.
The generated file format is : First line : the normal HTTP URL. Second line:
empty line Rest of the file the HTTP request.
- Since:
- JDK 1.1
- Version:
- 1.0.
- Author:
- Philippe Delrieu
Constructor Summary |
HTTPFileConduit(int port,
java.lang.String file)
To define the .out file waiting time use the property :org.openmobileis.common.HTTPFileConduit.timeout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPFileConduit
public HTTPFileConduit(int port,
java.lang.String file)
- To define the .out file waiting time use the property :org.openmobileis.common.HTTPFileConduit.timeout. The time is in millisecond.
startListening
public void startListening(java.lang.String sendServerAddress)
isDebugOn
public boolean isDebugOn()
setDebugOn
public void setDebugOn(boolean debugOn)
Copyright 2006 OpenMobileIS. All Rights Reserved.