org.glite.voms.contact

Class VOMSParser


public class VOMSParser
extends java.lang.Object

This class implements the XML parsing of responses produced by VOMS servers.

Field Summary

protected DocumentBuilder
docBuilder

Method Summary

static VOMSParser
instance()
VOMSResponse
parseResponse(InputStream is)
Parses a voms response reading from a given input stream.

Field Details

docBuilder

protected DocumentBuilder docBuilder

Method Details

instance

public static VOMSParser instance()
Returns:
a new VOMSParser instance.

parseResponse

public VOMSResponse parseResponse(InputStream is)
Parses a voms response reading from a given input stream.
Parameters:
is - the input stream.
Returns:
a VOMSResponse object that represents the parsed response.