nz.co.jsrsolutions.tideservice.scraper.provider.AbstractEasyTideHttpPost.java Source code

Java tutorial

Introduction

Here is the source code for nz.co.jsrsolutions.tideservice.scraper.provider.AbstractEasyTideHttpPost.java

Source

/* -*- mode: java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */

/*
 * @(#)AbstractEasyTideHttpPost.java        
 *
 * Copyright (c) 2012 JSR Solutions Limited
 * 4 Viridian Lane, Auckland, 0632.  New Zealand
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of JSR
 * Solutions Limited. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with JSR Solutions Limited.
 */

package nz.co.jsrsolutions.tideservice.scraper.provider;

import java.net.URI;

import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicHeader;

public abstract class AbstractEasyTideHttpPost extends HttpPost {

    public AbstractEasyTideHttpPost(URI uri, String viewState) {

        super(uri);

        addHeader(new BasicHeader("Content-Type", "application/x-www-form-urlencoded"));
    }

}