|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
org.xmlBlaster.util.http.HttpIORServer
Delivering the Authentication Service IOR over HTTP.
This tiny HTTP server is always running in the xmlBlaster server on the default bootstrapPort 3412.
| Field Summary | |
private java.lang.String |
fishMimeType
|
private java.lang.String |
fishRequestFile
|
private java.lang.String |
fishRequestUrlPath
|
private Global |
glob
|
private int |
HTTP_PORT
|
private java.lang.String |
icoMimeType
|
private java.lang.String |
icoRequestFile
|
private java.lang.String |
icoRequestUrlPath
|
private java.lang.String |
ip_addr
|
private java.util.Hashtable |
knownRequests
|
private java.net.ServerSocket |
listen
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
private boolean |
running
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
HttpIORServer(Global glob,
java.lang.String ip_addr,
int port)
Create a little web server. |
|
| Method Summary | |
java.lang.String |
getSocketInfo()
Access the server settings for logging. |
void |
registerRequest(java.lang.String urlPath,
I_HttpRequest cb)
If you want to provide some information over http, register it here. |
void |
registerRequest(java.lang.String urlPath,
java.lang.String data)
If you want to provide some information over http, register it here. |
void |
removeRequest(I_HttpRequest cb)
Unregister your http listener. |
void |
removeRequest(java.lang.String urlPath)
Unregister your http listener. |
void |
run()
|
HttpResponse |
service(java.lang.String urlPath,
java.util.Map properties)
A HTTP request needs to be processed |
void |
shutdown()
Close the listener port |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
private java.lang.String ME
private final Global glob
private static java.util.logging.Logger log
private java.lang.String ip_addr
private final int HTTP_PORT
private java.net.ServerSocket listen
private boolean running
private java.lang.String icoMimeType
private java.lang.String icoRequestFile
private java.lang.String icoRequestUrlPath
private java.lang.String fishMimeType
private java.lang.String fishRequestFile
private java.lang.String fishRequestUrlPath
private java.util.Hashtable knownRequests
| Constructor Detail |
public HttpIORServer(Global glob,
java.lang.String ip_addr,
int port)
ip_addr - The string representation like "192.168.1.1", useful if multihomed computer| Method Detail |
public void registerRequest(java.lang.String urlPath,
java.lang.String data)
urlPath - The access path which the client uses to access your data, for example "/AuthenticationService.ior"data - The data you want to deliver to the client e.g. the CORBA IOR string
public void registerRequest(java.lang.String urlPath,
I_HttpRequest cb)
urlPath - The access path which the client uses to access your data,
for example "/monitor/index.html" or "/favicon.ico"public void removeRequest(java.lang.String urlPath)
urlPath - The access path which the client uses to access your data
for example "/monitor/index.html" or "/favicon.ico"public void removeRequest(I_HttpRequest cb)
cb - Remove all registered pathes of this registrar.
for example "/monitor/index.html" or "/favicon.ico"public void run()
run in interface java.lang.Runnablepublic void shutdown()
public HttpResponse service(java.lang.String urlPath,
java.util.Map properties)
service in interface I_HttpRequesturlPath - The url path like "/monitor" which triggered this callproperties - The key values from the browser
public java.lang.String getSocketInfo()
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||