/** * The boolean configuration flags determine when new connections are made. For example if this * transport is being used for query/response, you might set connectOnSend to true and * the others to false, so that each query/response is done over a fresh connection. If * you are using a transport just to read data from a URL, you might set connectOnReceive to * true and the others to false. * * @param theURL the URL at which messages are to be read and written * @param connectOnSend makes a new connection before each send * @param connectOnReceive makes a new connection before each receive * @param connectOnConnect makes a new connection when connect() is called */ public URLTransport(URL theURL, boolean connectOnSend, boolean connectOnReceive, boolean connectOnConnect) { myURL = theURL; getCommonMetadata().put(URL_KEY, theURL); myConnectOnSend = connectOnSend; myConnectOnReceive = connectOnReceive; myConnectOnConnect = connectOnConnect; }
/** * The boolean configuration flags determine when new connections are made. For example if this * transport is being used for query/response, you might set connectOnSend to true and * the others to false, so that each query/response is done over a fresh connection. If * you are using a transport just to read data from a URL, you might set connectOnReceive to * true and the others to false. * * @param theURL the URL at which messages are to be read and written * @param connectOnSend makes a new connection before each send * @param connectOnReceive makes a new connection before each receive * @param connectOnConnect makes a new connection when connect() is called */ public URLTransport(URL theURL, boolean connectOnSend, boolean connectOnReceive, boolean connectOnConnect) { myURL = theURL; getCommonMetadata().put(URL_KEY, theURL); myConnectOnSend = connectOnSend; myConnectOnReceive = connectOnReceive; myConnectOnConnect = connectOnConnect; }