|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.monoserv.InstanceModifier
public class InstanceModifier
Allows the modules to set fields which will force the MonoServerInstance to react based on the fields set. Tied to the module and optional. Also has a DISABLE_FIELD that is only used during merging. This allows you to explicity disable features if they have been enable previously. All manipulations are done using bitwise operators. Thanks to Chris Shotwell at Avalon-X for assisting with the merge section.
| Constructor Summary | |
|---|---|
InstanceModifier()
Blank constructor |
|
| Method Summary | |
|---|---|
boolean |
closeSocketAfterSend()
Determines if the socket should be closed after the data stream has been written and flushed. |
void |
disableCloseSocketAfterSend()
Tells the MonoServerInstance to not close the socket after the data stream has been written and flushed. |
void |
enableCloseSocketAfterSend()
Tells the MonoServerInstance to close the socket after the data stream has been written and flushed. |
int |
getBitField()
Returns the BIT_FIELD value stored in the object. |
int |
getDisableField()
Only used when merging two InstanceModifier objects together. |
void |
merge(InstanceModifier im)
Takes the internal bits of the supplied InstanceModifier and applies them to this BIT_FIELD. |
void |
setModifier(InstanceModifier im)
Sets the internal bits according to the supplied copy of the InstanceModifier This will clear all the bits and copy the bits that are set in the instance modifier |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceModifier()
| Method Detail |
|---|
public void enableCloseSocketAfterSend()
public void disableCloseSocketAfterSend()
public int getDisableField()
public boolean closeSocketAfterSend()
public int getBitField()
public void setModifier(InstanceModifier im)
im - The instance modifier to replace this object with.public void merge(InstanceModifier im)
im - The object to merge with the current object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||