|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| 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(java.io.InputStream stream)
|
protected java.io.InputStream |
copyStream(java.io.InputStream stream)
Creates a new copy of the given InputStream |
protected javax.xml.parsers.DocumentBuilder |
instantiateParser()
Creates a new instance of DocumentBuilder |
protected boolean |
isValidHttpResponse(int statusCode)
Makes sure that the HttpResponse is not a critical error |
protected java.lang.String |
parseStream(java.io.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 java.lang.String parseStream(java.io.InputStream stream)
throws java.io.IOException
stream -
java.io.IOException
protected javax.xml.parsers.DocumentBuilder instantiateParser()
throws java.io.IOException
java.io.IOExceptionprotected boolean closeStream(java.io.InputStream stream)
protected java.io.InputStream copyStream(java.io.InputStream stream)
throws java.io.IOException
stream -
java.io.IOException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| 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