com.sshtools.net
Class HttpHeader

java.lang.Object
  extended by com.sshtools.net.HttpHeader
Direct Known Subclasses:
HttpRequest, HttpResponse

public abstract class HttpHeader
extends Object

Utility class to process HTTP headers.

Author:
Lee David Painter

Field Summary
protected  String begin
           
protected static String white_SPACE
           
 
Constructor Summary
protected HttpHeader()
           
 
Method Summary
 String getHeaderField(String headerName)
           
 Enumeration getHeaderFieldNames()
           
 Hashtable getHeaderFields()
           
 String getStartLine()
           
protected  void processHeaderFields(InputStream in)
           
protected  String readLine(InputStream in)
           
 void setHeaderField(String headerName, String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

white_SPACE

protected static final String white_SPACE
See Also:
Constant Field Values

begin

protected String begin
Constructor Detail

HttpHeader

protected HttpHeader()
Method Detail

readLine

protected String readLine(InputStream in)
                   throws IOException
Throws:
IOException

getStartLine

public String getStartLine()

getHeaderFields

public Hashtable getHeaderFields()

getHeaderFieldNames

public Enumeration getHeaderFieldNames()

getHeaderField

public String getHeaderField(String headerName)

setHeaderField

public void setHeaderField(String headerName,
                           String value)

toString

public String toString()
Overrides:
toString in class Object

processHeaderFields

protected void processHeaderFields(InputStream in)
                            throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.