org.glassfish.examples.http
Class HttpRequest

java.lang.Object
  extended by org.glassfish.examples.http.HttpRequest

public class HttpRequest
extends Object

This is not a true HttpRequest, but is just here for illustration purposes. It would get the individual items out of the real HttpRequest in a real system. In this case, it just spits out whatever is put in

Author:
jwells

Constructor Summary
HttpRequest()
           
 
Method Summary
 void addElement(String element)
          Sets the next element in the request
 String getPathElement(int index)
          Gets the path element from the given index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequest

public HttpRequest()
Method Detail

getPathElement

public String getPathElement(int index)
Gets the path element from the given index

Parameters:
index - the element to get the index from
Returns:
The element at this index (as a string)

addElement

public void addElement(String element)
Sets the next element in the request

Parameters:
element - The element to put next in the elements list


Copyright © 2013 Oracle Corporation. All Rights Reserved.