com.ibm.redback.redbeans
Class Encoder

java.lang.Object
  |
  +--com.ibm.redback.redbeans.Encoder

public class Encoder
extends java.lang.Object

Encoder class with static method to encode string before submitting to RBO server. By default the Java class java.net.URLEncoder.encode(String s) is called to do the actual encoding. If you have an alternative encoding requirement then you may implement your own class to replace this class.


Constructor Summary
Encoder()
           
 
Method Summary
static java.lang.String encode(java.lang.String s)
          Encodes String using java.net.URLEncoder.encode(String s), can be replaced with your own encoding routine if required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encoder

public Encoder()
Method Detail

encode

public static java.lang.String encode(java.lang.String s)
Encodes String using java.net.URLEncoder.encode(String s), can be replaced with your own encoding routine if required.
Parameters:
s - the String to encode