01: /*
02: *
03: *
04: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
05: * Reserved. Use is subject to license terms.
06: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License version
10: * 2 only, as published by the Free Software Foundation.
11: *
12: * This program is distributed in the hope that it will be useful, but
13: * WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License version 2 for more details (a copy is
16: * included at /legal/license.txt).
17: *
18: * You should have received a copy of the GNU General Public License
19: * version 2 along with this work; if not, write to the Free Software
20: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21: * 02110-1301 USA
22: *
23: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
24: * Clara, CA 95054 or visit www.sun.com if you need additional
25: * information or have any questions.
26: */
27:
28: /*
29: * (c) Copyright 2001, 2002 Motorola, Inc. ALL RIGHTS RESERVED.
30: */
31: package javax.obex;
32:
33: import java.io.IOException;
34:
35: /**
36: * This interface is defined by the JSR-82 specification
37: * <em>Java™ APIs for Bluetooth™ Wireless Technology,
38: * Version 1.1.</em>
39: */
40: // JAVADOC COMMENT ELIDED
41: public interface HeaderSet {
42:
43: // JAVADOC COMMENT ELIDED
44: public static final int COUNT = 0xC0;
45:
46: // JAVADOC COMMENT ELIDED
47: public static final int NAME = 0x01;
48:
49: // JAVADOC COMMENT ELIDED
50: public static final int TYPE = 0x42;
51:
52: // JAVADOC COMMENT ELIDED
53: public static final int LENGTH = 0xC3;
54:
55: // JAVADOC COMMENT ELIDED
56: public static final int TIME_ISO_8601 = 0x44;
57:
58: // JAVADOC COMMENT ELIDED
59: public static final int TIME_4_BYTE = 0xC4;
60:
61: // JAVADOC COMMENT ELIDED
62: public static final int DESCRIPTION = 0x05;
63:
64: // JAVADOC COMMENT ELIDED
65: public static final int TARGET = 0x46;
66:
67: // JAVADOC COMMENT ELIDED
68: public static final int HTTP = 0x47;
69:
70: // JAVADOC COMMENT ELIDED
71: public static final int WHO = 0x4A;
72:
73: // JAVADOC COMMENT ELIDED
74: public static final int OBJECT_CLASS = 0x4F;
75:
76: // JAVADOC COMMENT ELIDED
77: public static final int APPLICATION_PARAMETER = 0x4C;
78:
79: // JAVADOC COMMENT ELIDED
80: public void setHeader(int headerID, Object headerValue);
81:
82: // JAVADOC COMMENT ELIDED
83: public Object getHeader(int headerID) throws IOException;
84:
85: // JAVADOC COMMENT ELIDED
86: public int[] getHeaderList() throws IOException;
87:
88: // JAVADOC COMMENT ELIDED
89: public void createAuthenticationChallenge(String realm,
90: boolean userID, boolean access);
91:
92: // JAVADOC COMMENT ELIDED
93: public int getResponseCode() throws IOException;
94: }
|