/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Partial server side async transport implementation. It manages pooling of
* {@link Codec} and other details.
*
* @author Jitendra Kotamraju
*/
public abstract class AbstractServerAsyncTransport<T> {
/**
* {@link WSEndpoint#setExecutor} should be called before creating the
* transport
*
* @param endpoint webservices requests are directed towards this endpoint
*/
}
/**
* decodes the transport data to Packet
*
* @param connection that carries the web service request
* @return decoded {@link Packet}
*/
return packet;
}
/**
* Encodes the {@link Packet} to infoset and writes on the connection.
*
* @param connection that carries the web service request
* @param packet that needs to encoded to infoset
* @param codec that does the encoding of Packet
*/
protected abstract void encodePacket(T connection, @NotNull Packet packet, @NotNull Codec codec) throws IOException;
/**
* If the request has Accept header, return that value
*
* @param connection that carries the web service request
* @return Accept MIME types
*/
/**
* {@link TransportBackChannel} used by jax-ws runtime to close the connection
* while the processing of the request is still continuing. In oneway HTTP case, a
* response code needs to be sent before invoking the endpoint.
*
* @param connection that carries the web service request
* @return TransportBackChannel instance using the connection
*/
/**
* If there are any properties associated with the connection, those will
* be added to {@link Packet}
*
* @param connection that carries the web service request
* @return {@link PropertySet} for the connection
*/
/**
* Return a {@link WebServiceContextDelegate} using the underlying connection.
*
* @param connection that carries the web service request
* @return non-null WebServiceContextDelegate instance
*/
/**
* Reads and decodes infoset from the connection and invokes the endpoints. The
* response is encoded and written to the connection. The response could be
* written using a different thread.
*
* @param connection that carries the web service request
*/
try {
} catch(IOException ioe) {
}
}
});
}
}
}
return endpoint.createCodec();
}
}
}