Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ematgine.threads.services.S1000Client.control
Class instance_socket  view instance_socket download instance_socket.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.ematgine.threads.services.S1000Client.control.instance_socket
All Implemented Interfaces:
java.lang.Runnable

class instance_socket
extends java.lang.Thread

Description of the Class


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.io.InputStream browserInputStream
          Description of the Field
private  java.io.OutputStream browserOutputStream
          Description of the Field
private  java.util.Hashtable channels
          Description of the Field
private  java.util.Hashtable configuration
          Description of the Field
private  java.net.Socket incoming
          The socket the listener will bind to
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
instance_socket(java.net.Socket i, java.util.Hashtable chans)
          Constructor
 
Method Summary
private  void defineMailServerConfiguration()
          Description of the Method
private  java.lang.String getHTTPHeader()
          Gets the hTTPHeader attribute of the instance_socket object
 void run()
          Treat requests from Servlet or from ematgine client with socket capabilities
private  void sendHTTPGetRequest(java.lang.String url_request)
          Description of the Method
private  void sendHTTPPostRequest(java.lang.String url_request, java.lang.String params)
          Description of the Method
private  boolean sendQueue(java.lang.String queueName, org.ematgine.threads.services.S1000Client.command.ControlCommand cmd)
          Description of the Method
private  void sendServerHTTPGetRequest(java.lang.String url_request)
          Description of the Method
private  void sendServerHTTPPostRequest(java.lang.String url_request, java.lang.String params)
          Description of the Method
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

incoming

private java.net.Socket incoming
The socket the listener will bind to


browserInputStream

private java.io.InputStream browserInputStream
Description of the Field


browserOutputStream

private java.io.OutputStream browserOutputStream
Description of the Field


configuration

private java.util.Hashtable configuration
Description of the Field


channels

private java.util.Hashtable channels
Description of the Field

Constructor Detail

instance_socket

public instance_socket(java.net.Socket i,
                       java.util.Hashtable chans)
Constructor

Method Detail

run

public void run()
Treat requests from Servlet or from ematgine client with socket capabilities


sendHTTPGetRequest

private void sendHTTPGetRequest(java.lang.String url_request)
Description of the Method


getHTTPHeader

private java.lang.String getHTTPHeader()
Gets the hTTPHeader attribute of the instance_socket object


sendHTTPPostRequest

private void sendHTTPPostRequest(java.lang.String url_request,
                                 java.lang.String params)
Description of the Method


defineMailServerConfiguration

private void defineMailServerConfiguration()
                                    throws java.lang.Exception
Description of the Method


sendServerHTTPGetRequest

private void sendServerHTTPGetRequest(java.lang.String url_request)
Description of the Method


sendServerHTTPPostRequest

private void sendServerHTTPPostRequest(java.lang.String url_request,
                                       java.lang.String params)
Description of the Method


sendQueue

private boolean sendQueue(java.lang.String queueName,
                          org.ematgine.threads.services.S1000Client.command.ControlCommand cmd)
Description of the Method