| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.portal.owswatch.validator.AbstractValidator
public abstract class AbstractValidator
Abstract class implementing the method validate.
| Constructor Summary | |
|---|---|
AbstractValidator()
 | 
|
| Method Summary | |
|---|---|
protected  boolean | 
closeStream(InputStream stream)
 | 
protected  InputStream | 
copyStream(InputStream stream)
Creates a new copy of the given InputStream  | 
protected  DocumentBuilder | 
instantiateParser()
Creates a new instance of DocumentBuilder  | 
protected  boolean | 
isValidHttpResponse(int statusCode)
Makes sure that the HttpResponse is not a critical error  | 
protected  String | 
parseStream(InputStream stream)
Parses a given InputStream to a String  | 
 ValidatorResponse | 
validateAnswer(org.apache.commons.httpclient.HttpMethodBase method,
                             int statusCode)
Recieves an instance of HttpMethodBase, extracts the needed data from it and builds a ValidatorResponse instance  | 
protected  ValidatorResponse | 
validateErrorHttpResponse(int statusCode)
 | 
protected  ValidatorResponse | 
validateXml(org.apache.commons.httpclient.HttpMethodBase method)
Validates the HttpMethodBase and checks if the execution was successful or not  | 
protected  ValidatorResponse | 
validateXmlServiceException(org.apache.commons.httpclient.HttpMethodBase method)
This method is called To read the ServiceExceptionReport from the xml file  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AbstractValidator()
| Method Detail | 
|---|
public ValidatorResponse validateAnswer(org.apache.commons.httpclient.HttpMethodBase method,
                                        int statusCode)
Validator
validateAnswer in interface Validatorprotected ValidatorResponse validateXml(org.apache.commons.httpclient.HttpMethodBase method)
method - the httpmethod after executing it
protected ValidatorResponse validateXmlServiceException(org.apache.commons.httpclient.HttpMethodBase method)
method - the httpmethod after executing it
protected boolean isValidHttpResponse(int statusCode)
statusCode - protected ValidatorResponse validateErrorHttpResponse(int statusCode)
statusCode - 
protected String parseStream(InputStream stream)
                      throws IOException
stream - 
IOException
protected DocumentBuilder instantiateParser()
                                     throws IOException
IOExceptionprotected boolean closeStream(InputStream stream)
protected InputStream copyStream(InputStream stream)
                          throws IOException
stream - 
IOException
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org