|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.Options
public class Options
Exposes the request options. There is one Options instance for each request, but certain options may change for each packet. For example if a user calls java_set_file_encoding(enc), the new file encoding becomes available in the next packet.
Constructor Summary | |
---|---|
Options()
|
Method Summary | |
---|---|
boolean |
base64Data()
Return true if we must return a base 64 encoded string due to limitations in the client's XML parser. |
byte[] |
getBytes(java.lang.String s)
Return a byte array using the current file encoding (see java_set_file_encoding()). |
java.lang.String |
getEncoding()
Returns the file encoding, see java_set_file_encoding(). |
boolean |
passContext()
Return true, if the client cannot keep a back-pointer to its own data structures. |
boolean |
preferValues()
Returns true when the bridge must destroy object identity (see PROTOCOL.TXT) due to limitations in the client (for PHP4 for example). |
boolean |
sendArraysAsValues()
Returns true when the bridge must destroy array, Map, Collection identity (see PROTOCOL.TXT) due to limitations in the client (for PHP4 for example). |
void |
setEncoding(java.lang.String symbol)
Set the new file encoding. |
void |
updateOptions(byte b)
Update the current request options |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Options()
Method Detail |
---|
public java.lang.String getEncoding()
public byte[] getBytes(java.lang.String s)
s
- The string
public boolean sendArraysAsValues()
public boolean preferValues()
public void setEncoding(java.lang.String symbol)
symbol
- The new file encoding, for example "UTF-8".public void updateOptions(byte b)
b
- The options from the request header.public boolean base64Data()
public boolean passContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |