|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.xmlBlaster.util.http.HttpIORServer
public class HttpIORServer
Delivering the Authentication Service IOR over HTTP.
This tiny HTTP server is always running in the xmlBlaster server on the default bootstrapPort 3412.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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 |
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 computerbootstrapPort
- The bootstrap port where we publish the IORMethod 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 stringpublic 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"data
- The data you want to deliver to the client e.g. the CORBA IOR stringpublic 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.Runnable
run
in class java.lang.Thread
public void shutdown()
public HttpResponse service(java.lang.String urlPath, java.util.Map properties)
service
in interface I_HttpRequest
urlPath
- The url path like "/monitor" which triggered this callproperties
- The key values from the browser
public java.lang.String getSocketInfo()
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |