Package org.webharvest.exception

Examples of org.webharvest.exception.HttpException


      HttpProcessor httpProcessor = scraper.getRunningHttpProcessor();
      if (httpProcessor != null) {
        httpProcessor.addHttpHeader(name, value.toString());
            this.setProperty("Name", name);
        } else {
        throw new HttpException("Usage of http-header processor is not allowed outside of http processor!");
      }
       
      return value;
    }
View Full Code Here


                        }
                    }
                }
                text = new String(responseBody, charset);
            } catch (UnsupportedEncodingException e) {
                throw new HttpException("Charset " + charset + " is not supported!", e);
            }
           
            result =  new NodeVariable(text);
        } else {
            result = new NodeVariable(responseBody);
View Full Code Here

            this.setProperty("Name", name);
            this.setProperty("Is File", String.valueOf(isFile));
            this.setProperty("File Name", fileName);
            this.setProperty("Content Type", contentType);
        } else {
        throw new HttpException("Usage of http-param processor is not allowed outside of http processor!");
      }
       
      return value;
    }
View Full Code Here

TOP

Related Classes of org.webharvest.exception.HttpException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.