Package org.eclipse.ecf.internal.bulletinboard.commons.webapp

Examples of org.eclipse.ecf.internal.bulletinboard.commons.webapp.GetRequest.addParameter()


    }
  }

  public IThread getThread(ID id) throws BBException {
    GetRequest request = new GetRequest(httpClient, url, "viewtopic.php");
    request.addParameter(new NameValuePair("t", String
        .valueOf(((ThreadID) id).getLongValue())));
    String resp = null;
    try {
      request.execute();
      resp = request.getResponseBodyAsString();
View Full Code Here


    return null;
  }

  public IThreadMessage getMessage(ID id) throws BBException {
    GetRequest request = new GetRequest(httpClient, url, "viewtopic.php");
    request.addParameter(new NameValuePair("p", String
        .valueOf(((ThreadMessageID) id).getLongValue())));
    String resp = null;
    try {
      request.execute();
      resp = request.getResponseBodyAsString();
View Full Code Here

    PHPBBParser parser = (PHPBBParser) bb.getParser();
    Map<ID, IThread> threadMap = null;
    try {
      WebRequest request = new GetRequest(bb.getHttpClient(), new URL(id
          .toExternalForm()), "");
      request.addParameter(new NameValuePair("f", String.valueOf(id
          .getLongValue())));
      request.execute();
      String resp = request.getResponseBodyAsString();
      request.releaseConnection();
      threadMap = parser.parseThreads(resp);
View Full Code Here

  private void attainDetailsFetched() {
    if (!detailsFetched) {
      GetRequest request = new GetRequest(bb.getHttpClient(),
          bb.getURL(), "groupcp.php");
      request.addParameter(new NameValuePair("g", String.valueOf(id
          .getLongValue())));
      String resp = null;
      try {
        request.execute();
        resp = request.getResponseBodyAsString();
View Full Code Here

  public Collection<IMember> getMembers() {
    Map<ID, IMember> map = Collections.emptyMap();
    GetRequest request = new GetRequest(bb.getHttpClient(), bb.getURL(),
        "groupcp.php");
    request.addParameter(new NameValuePair("g", String.valueOf(id
        .getLongValue())));
    try {
      request.execute();
      String str = request.getResponseBodyAsString();
      request.releaseConnection();
View Full Code Here

  public Collection<IThread> getThreads() {
    VBParser parser = (VBParser) bb.getParser();
    Map<ID, IThread> threadMap = null;
    WebRequest request = new GetRequest(bb.getHttpClient(), getURL(), "");
    request.addParameter(new NameValuePair("f", String.valueOf(id
        .getLongValue())));
    try {
      request.execute();
      String resp = request.getResponseBodyAsString();
      request.releaseConnection();
View Full Code Here

    return cachedForums.get(id);
  }

  public IThread getThread(ID id) throws BBException {
    GetRequest request = new GetRequest(httpClient, url, "showthread.php");
    request.addParameter(new NameValuePair("t", String
        .valueOf(((ThreadID) id).getLongValue())));
    String resp = null;
    try {
      request.execute();
      resp = request.getResponseBodyAsString();
View Full Code Here

  }

  @Override
  protected WebRequest createMemberGroupListRequest() {
    WebRequest request = new GetRequest(httpClient, url, "profile.php");
    request.addParameter(new NameValuePair("do", "editusergroups"));
    return request;
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.