This project has retired. For details please refer to its Attic page.
Source code
001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.reef.javabridge;
020
021import org.apache.reef.annotations.audience.Interop;
022import org.apache.reef.annotations.audience.Private;
023
024/**
025 * The Java-CLR bridge object for http server events.
026 */
027@Private
028@Interop(
029    CppFiles = { "Clr2JavaImpl.h",  "HttpServerClr2Java.cpp"},
030    CsFiles = { "IHttpServerBridgeClr2Java.cs", "HttpMessage.cs" })
031public final class HttpServerEventBridge extends NativeBridge {
032  private String queryString;
033  private byte[] queryRequestData;
034  private byte[] queryResponseData;
035  private String queryResult;
036  private String uriSpecification;
037
038  public HttpServerEventBridge(final String queryStr) {
039    this.queryString = queryStr;
040  }
041
042  public HttpServerEventBridge(final byte[] queryRequestData) {
043    this.queryRequestData = queryRequestData;
044  }
045
046  public String getQueryString() {
047    return queryString;
048  }
049
050  public void setQueryString(final String queryStr) {
051    this.queryString = queryStr;
052  }
053
054  public String getQueryResult() {
055    return queryResult;
056  }
057
058  public void setQueryResult(final String queryResult) {
059    this.queryResult = queryResult;
060  }
061
062  public String getUriSpecification() {
063    return uriSpecification;
064  }
065
066  public void setUriSpecification(final String uriSpecification) {
067    this.uriSpecification = uriSpecification;
068  }
069
070  public byte[] getQueryRequestData() {
071    return queryRequestData;
072  }
073
074  public void setQueryRequestData(final byte[] queryRequestData) {
075    this.queryRequestData = queryRequestData;
076  }
077
078  public byte[] getQueryResponseData() {
079    return queryResponseData;
080  }
081
082  public void setQueryResponseData(final byte[] responseData) {
083    queryResponseData = responseData;
084  }
085
086  @Override
087  public void close() {
088  }
089}