org.glite.voms.contact

Class VOMSProtocol


public class VOMSProtocol
extends java.lang.Object

This class manages the client-side communication protocol with the VOMS server.

Method Summary

VOMSResponse
getResponse(InputStream stream)
This method is used to parse a VOMS response from an input stream.
static VOMSProtocol
instance()
void
sendRequest(VOMSRequestOptions requestOptions, OutputStream stream)
This method is used to send a request to a VOMS server.
protected String
xmlDocAsString(Document doc)

Method Details

getResponse

public VOMSResponse getResponse(InputStream stream)
This method is used to parse a VOMS response from an input stream.
Parameters:
stream - the input stream from which the response will be parsed.
Returns:
a VOMSResponse object.

instance

public static VOMSProtocol instance()

sendRequest

public void sendRequest(VOMSRequestOptions requestOptions,
                        OutputStream stream)
This method is used to send a request to a VOMS server.
Parameters:
requestOptions - the request options. See VOMSRequestOptions.
stream - an output stream.

xmlDocAsString

protected String xmlDocAsString(Document doc)