01: /**********************************************************************************
02: *
03: * Copyright (c) 2003, 2004 The Regents of the University of Michigan, Trustees of Indiana University,
04: * Board of Trustees of the Leland Stanford, Jr., University, and The MIT Corporation
05: *
06: * Licensed under the Educational Community License Version 1.0 (the "License");
07: * By obtaining, using and/or copying this Original Work, you agree that you have read,
08: * understand, and will comply with the terms and conditions of the Educational Community License.
09: * You may obtain a copy of the License at:
10: *
11: * http://cvs.sakaiproject.org/licenses/license_1_0.html
12: *
13: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
14: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
15: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18: *
19: **********************************************************************************/package edu.indiana.lib.twinpeaks.search;
20:
21: import edu.indiana.lib.twinpeaks.net.HttpTransaction;
22:
23: public interface HttpTransactionQueryInterface {
24:
25: /*
26: * Transaction redirect handling
27: */
28: /**
29: * <code>URLConnection</code> handles all redirects
30: */
31: final static int REDIRECT_AUTOMATIC = 0;
32: /**
33: * The <code>QueryBase submit</code> code handles redirects
34: */
35: final static int REDIRECT_MANAGED = 1;
36: /**
37: * The caller will get control at each individual step in the redirect chain
38: */
39: final static int REDIRECT_MANAGED_SINGLESTEP = 2;
40:
41: /**
42: * Set desired redirect behavior for the HTTP transaction code
43: * @param behavior Desired redirect handling. (one of the REDIRECT constants)
44: */
45: public void setRedirectBehavior(int behavior);
46:
47: /*
48: * Query method
49: */
50: final static String METHOD_GET = HttpTransaction.METHOD_GET;
51: final static String METHOD_POST = HttpTransaction.METHOD_POST;
52:
53: /**
54: * @param method HTTP submission type. (one of the METHOD constants)
55: */
56: public void setQueryMethod(String method);
57: }
|