javaextensions/bluetooth/bluecove/javasrc/javax/obex/HeaderSet.java
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /**
       
     2  *  BlueCove - Java library for Bluetooth
       
     3  * 
       
     4  *  Java docs licensed under the Apache License, Version 2.0
       
     5  *  http://www.apache.org/licenses/LICENSE-2.0 
       
     6  *   (c) Copyright 2001, 2002 Motorola, Inc.  ALL RIGHTS RESERVED.
       
     7  *
       
     8  *  Licensed to the Apache Software Foundation (ASF) under one
       
     9  *  or more contributor license agreements.  See the NOTICE file
       
    10  *  distributed with this work for additional information
       
    11  *  regarding copyright ownership.  The ASF licenses this file
       
    12  *  to you under the Apache License, Version 2.0 (the
       
    13  *  "License"); you may not use this file except in compliance
       
    14  *  with the License.  You may obtain a copy of the License at
       
    15  *
       
    16  *    http://www.apache.org/licenses/LICENSE-2.0
       
    17  *
       
    18  *  Unless required by applicable law or agreed to in writing,
       
    19  *  software distributed under the License is distributed on an
       
    20  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
       
    21  *  KIND, either express or implied.  See the License for the
       
    22  *  specific language governing permissions and limitations
       
    23  *  under the License.
       
    24  *
       
    25  *  @version $Id: HeaderSet.java 2531 2008-12-09 19:43:45Z skarzhevskyy $  
       
    26  */
       
    27 package javax.obex;
       
    28 
       
    29 import java.io.IOException;
       
    30 
       
    31 /**
       
    32  * Please refer JSR-82
       
    33  */
       
    34 public interface HeaderSet {
       
    35 
       
    36     /**
       
    37      * Please refer JSR-82
       
    38      */
       
    39 	public static final int COUNT = 0xC0;
       
    40 
       
    41     /**
       
    42      * Please refer JSR-82
       
    43      */
       
    44 	public static final int NAME = 0x01;
       
    45 
       
    46     /**
       
    47      * Please refer JSR-82
       
    48      */
       
    49 	public static final int TYPE = 0x42;
       
    50 
       
    51     /**
       
    52      * Please refer JSR-82
       
    53      */
       
    54 	public static final int LENGTH = 0xC3;
       
    55 
       
    56     /**
       
    57      * Please refer JSR-82
       
    58      */
       
    59 	public static final int TIME_ISO_8601 = 0x44;
       
    60 
       
    61     /**
       
    62      * Please refer JSR-82
       
    63      */
       
    64 	public static final int TIME_4_BYTE = 0xC4;
       
    65 
       
    66     /**
       
    67      * Please refer JSR-82
       
    68      */
       
    69 	public static final int DESCRIPTION = 0x05;
       
    70 
       
    71     /**
       
    72      * Please refer JSR-82
       
    73      */
       
    74 	public static final int TARGET = 0x46;
       
    75 
       
    76     /**
       
    77      * Please refer JSR-82
       
    78      */
       
    79 	public static final int HTTP = 0x47;
       
    80 
       
    81     /**
       
    82      * Please refer JSR-82
       
    83      */
       
    84 	public static final int WHO = 0x4A;
       
    85 
       
    86     /**
       
    87      * Please refer JSR-82
       
    88      */
       
    89 	public static final int OBJECT_CLASS = 0x4F;
       
    90 
       
    91     /**
       
    92      * Please refer JSR-82
       
    93      */
       
    94 	public static final int APPLICATION_PARAMETER = 0x4C;
       
    95 
       
    96     /**
       
    97      * Please refer JSR-82
       
    98      */
       
    99 	public void setHeader(int headerID, Object headerValue);
       
   100 
       
   101     /**
       
   102      * Please refer JSR-82
       
   103      */
       
   104 	public Object getHeader(int headerID) throws IOException;
       
   105 
       
   106     /**
       
   107      * Please refer JSR-82
       
   108      */
       
   109 	public int[] getHeaderList() throws IOException;
       
   110 
       
   111     /**
       
   112      * Please refer JSR-82
       
   113      */
       
   114 	public void createAuthenticationChallenge(String realm, boolean userID, boolean access);
       
   115 
       
   116     /**
       
   117      * Please refer JSR-82
       
   118      */
       
   119 	public int getResponseCode() throws IOException;
       
   120 }