|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StreamTransmitter
This interface describes the methods needed by a Stream Transmitter. This type of class can transmit values to an endpoint (such as a servlet or JSP page) and process the results via a StreamProcessor. Last edited by $Author: sowen70 $
| Method Summary | |
|---|---|
void |
setAuthentication(java.lang.String userName,
java.lang.String password)
This method sets the userName and password used to transmit data to the service. |
void |
setContext(java.lang.String context)
This method sets the context for the url. |
void |
setHost(java.lang.String host)
This method sets the host for the url. |
void |
setMimeHeader(java.lang.String name,
java.lang.String value)
This method sets the mime-header. |
void |
setPort(int port)
This method sets the port for the url. |
void |
setServiceName(java.lang.String serviceName)
This method is used to set the service URL. |
void |
setURL(java.lang.String url)
This method sets the URL. |
java.util.Map |
transmit(java.util.Map map,
StreamProcessor streamProcessor)
This method takes a reflectable object and transmits it to a service |
| Method Detail |
|---|
java.util.Map transmit(java.util.Map map,
StreamProcessor streamProcessor)
throws TransmitterException
map - A map object (either HashTable or HashMap) containing the
parameter names(keys) and parameter values to be transmitted.
TransmitterExceptionvoid setServiceName(java.lang.String serviceName)
serviceName - The name of the service for the url.void setHost(java.lang.String host)
host - void setPort(int port)
port - The port used by the service.void setContext(java.lang.String context)
context - The following portion of the url: http://host:port/context
void setAuthentication(java.lang.String userName,
java.lang.String password)
userName - The username used for authentication.password - The password used for authentication.
void setMimeHeader(java.lang.String name,
java.lang.String value)
name - Name of the header parameter.value - The value of the header parameter.
void setURL(java.lang.String url)
throws java.net.MalformedURLException
url -
java.net.MalformedURLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||