com.universaldevices.upnp
Class UDIWebServiceProcessor

java.lang.Object
  extended by com.universaldevices.upnp.UDIWebServiceProcessor

public class UDIWebServiceProcessor
extends java.lang.Object

Processes all requests for a specific Web Service


Constructor Summary
UDIWebServiceProcessor(java.lang.String webServiceName, UDProxyDevice device)
          Processes requests for the specified WEB service.
 
Method Summary
 void reset()
          Remove any cached objects such as UDProxyDevice, etc.
 UDHTTPResponse submitDetailedRequest(java.lang.String soapAction, java.lang.StringBuffer body, boolean keep_alive)
          Submits a SOAP request, returns the full HTTP Response.
 UDHTTPResponse submitDetailedRequest(java.lang.String soapAction, java.lang.StringBuffer body, java.lang.String attributes, boolean keep_alive)
          Submits a SOAP request, returns the full HTTP Response.
 java.lang.String submitRequest(java.lang.String soapAction, java.lang.StringBuffer body)
          Submits a SOAP request, returning the body of the response in a string.
 java.lang.String submitRequest(java.lang.String soapAction, java.lang.StringBuffer body, java.lang.String attributes)
          Submits a SOAP request, returning the body of the response in a string.
 boolean submitSimpleRequest(java.lang.String soapAction, java.lang.StringBuffer body)
          Submits a simple SOAP request, returning only success or failure.
 boolean submitSimpleRequest(java.lang.String soapAction, java.lang.StringBuffer body, java.lang.String attributes)
          Submits a simple SOAP request, returning only success or failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDIWebServiceProcessor

public UDIWebServiceProcessor(java.lang.String webServiceName,
                              UDProxyDevice device)
Processes requests for the specified WEB service.

Parameters:
webServiceName - The common name of the Web Service
device - The proxy device that will carry out the requests
Method Detail

reset

public void reset()
Remove any cached objects such as UDProxyDevice, etc.


submitSimpleRequest

public boolean submitSimpleRequest(java.lang.String soapAction,
                                   java.lang.StringBuffer body)
Submits a simple SOAP request, returning only success or failure.

Parameters:
soapAction - SOAP action
body - Parameters
Returns:
True if successful

submitSimpleRequest

public boolean submitSimpleRequest(java.lang.String soapAction,
                                   java.lang.StringBuffer body,
                                   java.lang.String attributes)
Submits a simple SOAP request, returning only success or failure.

Parameters:
soapAction - SOAP action
body - Parameters
Returns:
True if successful

submitRequest

public java.lang.String submitRequest(java.lang.String soapAction,
                                      java.lang.StringBuffer body)
Submits a SOAP request, returning the body of the response in a string.

Parameters:
soapAction - SOAP action
body - Parameters
Returns:
The String body returned, or null if not successful.

submitRequest

public java.lang.String submitRequest(java.lang.String soapAction,
                                      java.lang.StringBuffer body,
                                      java.lang.String attributes)
Submits a SOAP request, returning the body of the response in a string.

Parameters:
soapAction - SOAP action
body - Parameters
attributes - Attributes applied to SOAP action tag (or null if no attributes)
Returns:
The String body returned, or null if not successful.

submitDetailedRequest

public UDHTTPResponse submitDetailedRequest(java.lang.String soapAction,
                                            java.lang.StringBuffer body,
                                            boolean keep_alive)
Submits a SOAP request, returns the full HTTP Response.

Parameters:
soapAction - SOAP action
body - Parameters
keep_alive -
Returns:
The HTTP Response, or null if not successful.

submitDetailedRequest

public UDHTTPResponse submitDetailedRequest(java.lang.String soapAction,
                                            java.lang.StringBuffer body,
                                            java.lang.String attributes,
                                            boolean keep_alive)
Submits a SOAP request, returns the full HTTP Response.

Parameters:
soapAction - SOAP action
body - Parameters
attributes - Attributes applied to SOAP action tag (or null if no attributes)
keep_alive -
Returns:
The HTTP Response, or null if not successful.