pygmy.core
Class Request

java.lang.Object
  extended by pygmy.core.Request
Direct Known Subclasses:
HttpRequest, NntpRequest

public abstract class Request
extends java.lang.Object


Field Summary
protected  java.net.Socket connection
           
 
Constructor Summary
Request(java.net.Socket connection, java.util.Properties serverConfig)
           
 
Method Summary
 java.lang.String getLocalAddr()
           
 int getLocalPort()
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 java.lang.String getRemoteAddr()
           
 int getRemotePort()
           
 boolean isInternal()
           
 void putProperty(java.lang.String key, java.lang.String value)
           
protected  void setIsInternal(boolean isItInternal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected java.net.Socket connection
Constructor Detail

Request

public Request(java.net.Socket connection,
               java.util.Properties serverConfig)
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)

putProperty

public void putProperty(java.lang.String key,
                        java.lang.String value)

isInternal

public boolean isInternal()

setIsInternal

protected void setIsInternal(boolean isItInternal)

getLocalAddr

public java.lang.String getLocalAddr()

getLocalPort

public int getLocalPort()

getRemoteAddr

public java.lang.String getRemoteAddr()

getRemotePort

public int getRemotePort()