public abstract class AuthenticationRequestFilter extends BaseObject implements IHttpMessageWriter, IFilterEvents, ISupportInitialize
Modifier and Type | Field and Description |
---|---|
private object<? extends IAuthenticatedRequest> |
authenticatedRequest |
private object<? extends LegacyClass> |
filterEventListenerType |
private ClassEvent |
httpCredentialRequest |
private object<? extends IhttpRequest> |
message |
private java.util.Stack<object> |
moListeners |
Constructor and Description |
---|
AuthenticationRequestFilter() |
Modifier and Type | Method and Description |
---|---|
void |
__net_http_filter_auth_AuthenticationRequestFilter_constructor__(object<? extends IAuthenticatedRequest> _poRequest) |
void |
__net_http_filter_auth_AuthenticationRequestFilter_destructor__() |
void |
__net_http_filter_auth_AuthenticationRequestFilter_execute__() |
protected abstract void |
addAuthetication()
Build the actual authentication.
|
void |
close()
Closes the output.
|
void |
destroy()
Destroy
|
void |
flush()
Flushes data to the output location.
|
protected object<? extends IAuthenticatedRequest> |
getAuthenticatedRequest() |
protected object<? extends Credentials> |
getCredentials(character _pcRealm) |
object<? extends LegacyClass> |
getFilterEventListenerType()
Returns the type(class or interface) that an a potential listener must implement or
inherit in order to handle events from this filter
|
object<? extends IhttpMessage> |
getMessage()
Get message.
|
void |
initialize()
Initialize
|
protected void |
onHttpCredentialRequest(object<? extends AuthenticationRequestEventArgs> _poAuthRequestArgs) |
void |
open()
Opens the writer for output.
|
private void |
publish_httpCredentialRequest(object poSender,
object poEventArgs) |
void |
subscribe_httpCredentialRequest(handle h,
character procName) |
void |
subscribe_httpCredentialRequest(object<? extends _BaseObject_> ref,
character methName) |
void |
subscribeListener(object<? extends _BaseObject_> _poListener)
Subscribes a listener to events from the implementing filter.
|
void |
unsubscribe_httpCredentialRequest(handle h,
character procName) |
void |
unsubscribe_httpCredentialRequest(object<? extends _BaseObject_> ref,
character methName) |
void |
unsubscribeListener(object<? extends _BaseObject_> _poListener)
Unsubsribes listeners from a writer, so that they can be GC'ed if needed.
|
void |
write(character _pcData)
Write data to/from the message
|
void |
write(handle _phData)
Write data to/from the message
|
void |
write(longchar _pcData)
Write data to/from the message
|
void |
write(memptr _pmData)
Write data to/from the message
|
void |
write(object<? extends _BaseObject_> _poData)
Write data to/from the message
|
__lang_BaseObject_constructor__, __lang_BaseObject_execute__, assertNotNull, assertNotNull, clone, getLegacyClass, getNextSibling, getPrevSibling, legacyEquals, toLegacyString
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
__lang_BaseObject_constructor__, clone, getLegacyClass, getNextSibling, getPrevSibling, isTracked, legacyEquals, toLegacyString
private ClassEvent httpCredentialRequest
private object<? extends LegacyClass> filterEventListenerType
private object<? extends IhttpRequest> message
private object<? extends IAuthenticatedRequest> authenticatedRequest
private java.util.Stack<object> moListeners
private void publish_httpCredentialRequest(object poSender, object poEventArgs)
public void subscribe_httpCredentialRequest(handle h, character procName)
public void subscribe_httpCredentialRequest(object<? extends _BaseObject_> ref, character methName)
public void unsubscribe_httpCredentialRequest(handle h, character procName)
public void unsubscribe_httpCredentialRequest(object<? extends _BaseObject_> ref, character methName)
public void __net_http_filter_auth_AuthenticationRequestFilter_execute__()
public void __net_http_filter_auth_AuthenticationRequestFilter_constructor__(object<? extends IAuthenticatedRequest> _poRequest)
public void __net_http_filter_auth_AuthenticationRequestFilter_destructor__()
public object<? extends LegacyClass> getFilterEventListenerType()
getFilterEventListenerType
in interface IFilterEvents
protected object<? extends IAuthenticatedRequest> getAuthenticatedRequest()
protected object<? extends Credentials> getCredentials(character _pcRealm)
public void subscribeListener(object<? extends _BaseObject_> _poListener)
subscribeListener
in interface IFilterEvents
_poListener
- The prospective listenerpublic void unsubscribeListener(object<? extends _BaseObject_> _poListener)
unsubscribeListener
in interface IFilterEvents
_poListener
- The listener to unsubscribepublic object<? extends IhttpMessage> getMessage()
getMessage
in interface IHttpMessageWriter
protected abstract void addAuthetication()
public void destroy()
destroy
in interface ISupportInitialize
public void initialize()
initialize
in interface ISupportInitialize
protected void onHttpCredentialRequest(object<? extends AuthenticationRequestEventArgs> _poAuthRequestArgs)
public void open()
open
in interface IHttpMessageWriter
public void write(object<? extends _BaseObject_> _poData)
write
in interface IHttpMessageWriter
_poData
- Data to writepublic void write(longchar _pcData)
write
in interface IHttpMessageWriter
_pcData
- Data to writepublic void write(handle _phData)
write
in interface IHttpMessageWriter
_phData
- Data to writepublic void write(character _pcData)
write
in interface IHttpMessageWriter
_pcData
- Data to writepublic void write(memptr _pmData)
write
in interface IHttpMessageWriter
_pmData
- Data to writepublic void flush()
flush
in interface IHttpMessageWriter
public void close()
close
in interface IHttpMessageWriter