org.marre.wap
Class WspHeaderEncoder

java.lang.Object
  extended byorg.marre.wap.WspHeaderEncoder

public final class WspHeaderEncoder
extends java.lang.Object

Version:
$Id: WspHeaderEncoder.java,v 1.4 2004/11/20 19:03:04 c95men Exp $
Author:
Markus Eriksson

Method Summary
static void writeCustomHeader(java.io.OutputStream theOs, java.lang.String name, java.lang.String value)
           
static void writeHeader(byte wspEncodingVersion, java.io.OutputStream theOs, MimeHeader theHeader)
           
static void writeHeaderContentID(byte wspEncodingVersion, java.io.OutputStream theOs, java.lang.String theContentId)
          Writes a wsp encoded content-id header as specified in WAP-230-WSP-20010705-a.pdf.
static void writeHeaderContentLocation(byte wspEncodingVersion, java.io.OutputStream theOs, java.lang.String theContentLocation)
          Writes a wsp encoded content-location header as specified in WAP-230-WSP-20010705-a.pdf.
static void writeHeaderContentType(byte wspEncodingVersion, java.io.OutputStream theOs, MimeHeader theContentType)
           
static void writeHeaderContentType(byte wspEncodingVersion, java.io.OutputStream theOs, java.lang.String theContentType)
           
static void writeHeaderXWapApplicationId(byte wspEncodingVersion, java.io.OutputStream theOs, java.lang.String theAppId)
          Writes a wsp encoded X-Wap-Application-Id header as specified in WAP-230-WSP-20010705-a.pdf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeHeader

public static void writeHeader(byte wspEncodingVersion,
                               java.io.OutputStream theOs,
                               MimeHeader theHeader)
                        throws java.io.IOException
Throws:
java.io.IOException

writeCustomHeader

public static void writeCustomHeader(java.io.OutputStream theOs,
                                     java.lang.String name,
                                     java.lang.String value)
                              throws java.io.IOException
Throws:
java.io.IOException

writeHeaderContentID

public static void writeHeaderContentID(byte wspEncodingVersion,
                                        java.io.OutputStream theOs,
                                        java.lang.String theContentId)
                                 throws java.io.IOException
Writes a wsp encoded content-id header as specified in WAP-230-WSP-20010705-a.pdf. Content-ID is introduced in encoding version 1.3.

Throws:
java.io.IOException

writeHeaderContentLocation

public static void writeHeaderContentLocation(byte wspEncodingVersion,
                                              java.io.OutputStream theOs,
                                              java.lang.String theContentLocation)
                                       throws java.io.IOException
Writes a wsp encoded content-location header as specified in WAP-230-WSP-20010705-a.pdf.

Throws:
java.io.IOException

writeHeaderContentType

public static void writeHeaderContentType(byte wspEncodingVersion,
                                          java.io.OutputStream theOs,
                                          java.lang.String theContentType)
                                   throws java.io.IOException
Throws:
java.io.IOException

writeHeaderContentType

public static void writeHeaderContentType(byte wspEncodingVersion,
                                          java.io.OutputStream theOs,
                                          MimeHeader theContentType)
                                   throws java.io.IOException
Throws:
java.io.IOException

writeHeaderXWapApplicationId

public static void writeHeaderXWapApplicationId(byte wspEncodingVersion,
                                                java.io.OutputStream theOs,
                                                java.lang.String theAppId)
                                         throws java.io.IOException
Writes a wsp encoded X-Wap-Application-Id header as specified in WAP-230-WSP-20010705-a.pdf. X-Wap-Application-Id is introduced in encoding version 1.2.

Throws:
java.io.IOException


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.