org.glite.voms.contact
Class VOMSProtocol

java.lang.Object
  extended by org.glite.voms.contact.VOMSProtocol

public class VOMSProtocol
extends Object

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

Author:
Andrea Ceccanti

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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static VOMSProtocol instance()

xmlDocAsString

protected String xmlDocAsString(Document doc)

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.

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.


Copyright © 2012. All Rights Reserved.